[PATCH v1 0/2] smb: client: fix unmount busy dentry/inode races on openFileList

From: Siddharth Chintamaneni

Date: Mon Nov 16 2026 - 19:18:04 EST


This series fixes two unmount races in cifs_kill_sb() where background
paths walk tcon->openFileList while wait_var_event() is waiting on
cifs_sb->outstanding_rreq and take new cifsFileInfo references that
outlive the wait, causing busy dentry/inode warnings and panics in
generic_shutdown_super():

- Patch 1 counts queued oplock/lease breaks in cifs_sb->outstanding_rreq
from cifs_queue_oplock_break() until cifs_oplock_break() completes.
- Patch 2 counts persistent handle reopens in cifs_sb->outstanding_rreq
in cifs_reopen_persistent_handles() until cifsFileInfo_put() drops the
handle reference.

Siddharth Chintamaneni (2):
smb: client: fix busy dentry and inode on unmount from late oplock
break
smb: client: fix busy dentry on unmount from persistent handle reopen

fs/smb/client/cifsfs.c | 10 +++++-----
fs/smb/client/file.c | 9 +++++++++
fs/smb/client/misc.c | 6 +++++-
3 files changed, 19 insertions(+), 6 deletions(-)

--
2.43.0