LAYOUTGET invocation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest22 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | Revert "pnfs-nonfilelayout: Prelim support for non-file layout O_DIRECT"fs/ | +0 | 0 replies | |
| 2/22 | Revert "pnfs: Enable O_DIRECT write path."fs/ | +1 | 0 replies | |
| 3/22 | Revert "pnfs: Enable O_DIRECT read path."fs/ | +1 | 0 replies | |
| 4/22 | Revert "pnfs: Add function to set up O_DIRECT I/O"fs/ fs/ | +0 | 0 replies | |
| 5/22 | pnfs: filelayout: clean and breakup nfs4_pnfs_dserver_getfs/ fs/ fs/ | +75 | 0 replies | |
| 6/22 | pnfs: filelayout: remove some dead code from filelayout_commitfs/ | +2 | 0 replies | |
| 7/22 | pnfs: remove PNFS_LAYOUTGET_ON_OPENfs/ include/ | +1 | 0 replies | |
| 8/22 | pnfs: track the number of outstanding commitsfs/ fs/ include/ | +21 | 0 replies | |
| 9/22 | pnfs_submit: mandate basic io path operations for layout driversfs/ | +8 | 0 replies | |
| 10/22 | pnfs_submit: expose pnfs_update_layout, put_lseg, and get_lseg functionsfs/ fs/ | +77 | 0 replies | |
| 11/22 | pnfs_submit: stash and refcount lseg in read pathfs/ fs/ fs/ +2 more | +24 | 0 replies | |
| 12/22 | pnfs_submit: read path changeoverfs/ fs/ fs/ | +25 | 0 replies | |
| 13/22 | pnfs_submit: use fsdata to pass lsegfs/ | +13 | 0 replies | |
| 14/22 | pnfs_submit: stash and refcount lseg in write pathfs/ fs/ include/ | +33 | 0 replies | |
| 15/22 | pnfs_submit: remove pnfs_file_operationsfs/ fs/ fs/ +2 more | +0 | 0 replies | |
| 16/22 | pnfs_submit: remove pnfs_update_layout_commitfs/ fs/ fs/ | +1 | 0 replies | |
| 17/22 | pnfs_submit: remove pnfs_writepages LAYOUTGET invocationfs/ fs/ | +13 | 0 replies | |
| 18/22 | pnfs: export some commit error handling for use by layout driversfs/ fs/ | +19 | 0 replies | |
| 19/22 | pnfs_submit: API change: remove pnfs_commit layoutget invocationfs/ fs/ fs/ +3 more | +43 | 0 replies | |
| 20/22 | pnfs_submit: filelayout: rewrite filelayout_commit to use new APIfs/ fs/ | +115 | 0 replies | |
| 21/22 | pnfs_submit: remove unecessary pnfs_fl_call_data field pnfs_clientfs/ include/ | +3 | 0 replies | |
| 22/22 | pnfs_submit: remove unecessary pnfs_fl_call_data field commit_through_mdsfs/ include/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/22] LAYOUTGET invocation
(My apologies for the 4 patches that went out about 1/2 hour ago. Please ignore those.)
This patch series limits LAYOUTGET invocation to the beginning of the IO paths.
It is intended for the pnfs_submit branch, without reversion in a post_submit branch.
Patches 1-4 revert direct IO. Commit is already broken, and this series breaks them further. The problem is that the direct IO redefines data->wb_req and data->pages, so that it can only work with the pnfs code if we don't look at those fields.
Patches 5-8 do some code cleanup in preperation for the real work.
Patches 9-19 implement the change. NOTE that patch 19 changes the calling convention of the layout drivers commit calls. There is no longer a universal lseg for the commit, instead each nfs_page has an lseg attached, with NULL meaning to go through the MDS.
Patches 20-22 rework the filelayout commit function, and then do some code cleanup this enables.
The basic idea of these patches is as follows:
We attempt to grab a lseg (possibly invoking LAYOUTGET) early in the IO. If we succeed, we refcount and stash it, using it through the rest of the io. If we fail, we revert to straight nfs, even if the area becomes covered by a layout due to other io.
The tricky, though hopefully anomalous, case is when we start without the layout, but have it at this particular stage of the IO. We ignore this for the moment at write_pages, which will cause block and object to issue CB_LAYOUTRECALL. At commit, it is tricky to handle, but since block doesn't use commit, and file needs to handle complicated splitting anyway, I just push all complicated decisions of splitting commit between nfs (for IO started without layout) and pnfs to the driver.
Fred