Skip to content

Restore non-file layout code version 2

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pnfs_post_submit: restore CB_NOTIFY_DEVICEIDfs/nfs/callback_proc.c fs/nfs/callback_xdr.c fs/nfs/pnfs.c +1 more+165 -30 replies
2/5pnfs_post_submit: restore GETDEVICELISTfs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c fs/nfs/pnfs.c +4 more+191 -00 replies
3/5pnfs_post_submit: add getdevicelist io operationfs/nfs/getroot.c fs/nfs/pnfs.h include/linux/nfs4_pnfs.h+17 -00 replies
4/5pnfs_post_submit: restore ds_wsize and ds_rsizefs/nfs/client.c fs/nfs/pnfs.c fs/nfs/pnfs.h +3 more+29 -100 replies
5/5pnfs_post_submit: restore get_blocksize policy operationfs/nfs/pnfs.c include/linux/nfs4_pnfs.h+31 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Restore non-file layout code version 2

Applies to 2.6.34-rc5 pnfs-submit branch on top of the "pNFS generic devce ID cache version 3" and " Remove non-file layout code from submit tree version 2"

This patch set restores object and block functionality removed in the pnfs-submit tree.

Adjust to using the generic device id cache.
Permanetly remove structure fields and function parameters not used by any layout driver.

Note: struct nfs_server pnfs_mount_type pointer was removed as it was unused due to the generic deviceid cache. The file layout driver does not need a private data pointer in struct nfs_server, and currently, neither does the object nor block layout driver. Once code is submitted that needs a private data pointer, (as I'm told is on the way) we can add one.

Note: The CB_NOTIFY_DEVICEID code is incomplete in that all layout segments referring to the 'to be removed device id' need to be reaped, and all in-flight I/O drained prior to device id removal.
Note: The generic device id cache means that there is no longer any need for a per layout driver delete_deviceid call. 0001-pnfs_post_submit-restore-CB_NOTIFY_DEVICEID.patch

For the block layout driver: Please review and test.
Note: new getdevicelist layoutdriver_io_operation. 0002-pnfs_post_submit-restore-GETDEVICELIST.patch 0003-pnfs_post_submit-add-getdevicelist-io-operation.patch

For the object layout driver. Please review and test.
Note: Just removed the unused ds_wpages and ds_rpages. 0004-pnfs_post_submit-restore-ds_wsize-and-ds_rsize.patch 0005-pnfs_post_submit-restore-get_blocksize-policy-operat.patch

Testing:
-------

The file layout driver does not use this code, so I could not test, and the code has changed due to the generic device id cache.

I did run Connectathon to smoke test that the file layout functionality has not changed.

-->Andy