mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/2] smb: client: fix unmount busy dentry/inode races on openFileList
@ 2026-11-17  0:17 Siddharth Chintamaneni
  2026-11-17  0:17 ` [PATCH v1 1/2] smb: client: fix busy dentry and inode on unmount from late oplock break Siddharth Chintamaneni
  2026-11-17  0:17 ` [PATCH v1 2/2] smb: client: fix busy dentry on unmount from persistent handle reopen Siddharth Chintamaneni
  0 siblings, 2 replies; 3+ messages in thread
From: Siddharth Chintamaneni @ 2026-11-17  0:17 UTC (permalink / raw)
  To: Paulo Alcantara
  Cc: Ronnie Sahlberg, Shyam Prasad N, Tom Talpey, Bharath SM,
	Allen Pais, Rachel Menge, Hardik Garg, Adam Kim,
	Siddharth Chintamaneni, linux-cifs, linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-17  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17  0:17 [PATCH v1 0/2] smb: client: fix unmount busy dentry/inode races on openFileList Siddharth Chintamaneni
2026-11-17  0:17 ` [PATCH v1 1/2] smb: client: fix busy dentry and inode on unmount from late oplock break Siddharth Chintamaneni
2026-11-17  0:17 ` [PATCH v1 2/2] smb: client: fix busy dentry on unmount from persistent handle reopen Siddharth Chintamaneni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®