ceph: better error handling for failed async creates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | ceph: print inode numbers instead of pointer valuesfs/ fs/ fs/ | +8 | 0 replies | |
| 2/6 | ceph: don't use -ESTALE as special return code in try_get_cap_refsfs/ | +8 | 0 replies | |
| 3/6 | ceph: drop private list from remove_session_caps_cbfs/ | +10 | 0 replies | |
| 4/6 | ceph: fix auth cap handling logic in remove_session_caps_cbfs/ | +3 | 0 replies | |
| 5/6 | ceph: refactor remove_session_caps_cbfs/ fs/ fs/ | +120 | 0 replies | |
| 6/6 | ceph: shut down access to inode when async create failsfs/ fs/ fs/ +4 more | +85 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] ceph: better error handling for failed async creates
We've had an ongoing problem with hung umounts in teuthology, the start of which seems to coincide with us starting to test "-o nowsync" more regularly. Recently, we were able to get better debug output, and saw that in at least one case, the issue was that the MDS started returning -ENOSPC on an async create attempt, which left the client trying to flush caps for an inode that never existed.
This patchset adds a new mechanism for "shutting down" inodes after the fact. If an async create fails, we already d_drop the dentry associated with it. This situation in this case is somewhat similar to the case where we have dirty inodes at forced umount time, so the idea is to extend the infrastructure that handles that case to also handle inodes that failed create too.
There are also some cleanup/bugfix patches in here. This was tested using a fault injection patch on the MDS that makes it start rejecting openc calls with -ENOSPC.
Jeff Layton (6):
ceph: print inode numbers instead of pointer values
ceph: don't use -ESTALE as special return code in try_get_cap_refs
ceph: drop private list from remove_session_caps_cb
ceph: fix auth cap handling logic in remove_session_caps_cb
ceph: refactor remove_session_caps_cb
ceph: shut down access to inode when async create fails
fs/ceph/addr.c | 16 +++-- fs/ceph/caps.c | 150 ++++++++++++++++++++++++++++++++++++++----- fs/ceph/export.c | 12 +++- fs/ceph/file.c | 12 +++- fs/ceph/inode.c | 39 +++++++++-- fs/ceph/locks.c | 6 ++ fs/ceph/mds_client.c | 112 +------------------------------- fs/ceph/super.h | 12 ++++ 8 files changed, 220 insertions(+), 139 deletions(-)
Signature · 1 line
2.31.1