zero layout stateid on last layout segment removal
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | SQUASHME pnfs-submit zero layout stateid on last layout segment removalfs/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] zero layout stateid on last layout segment removal
This is a piece of the "pnfs-submit Re-initialize pnfs_layout_type when segs list is emtpy" patch set that I think is not being argued about.
More initialization needs to occur when the layout->segs list is empty.
This patch fixes the bug where a layoutreturn would empty the nfs_inode->layout segs list, and a future layoutget would use a (now-stale) stateid instead of creating a new layout stateid from an existing open/lock/deleg stateid.
layoutget decides to get a new stateid when the nfs_layout->layout->stateid is zeroed.
Testing;
CONFIG_NFS_V4_1 set:
Passes Connectathon (pnfs mount).
Behaves correctly in pyNFS file layout server tests where return-on-close is set - every layoutget uses a new stateid.
CONFIG_NFS_V4_1 not set:
NFsv4.0 passses connectathon
-->Andy