cifs: Fix locking in cifs_strict_readv()
authorSteve French <stfrench@microsoft.com>
Mon, 13 May 2024 22:02:05 +0000 (17:02 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 13 May 2024 22:02:05 +0000 (17:02 -0500)
commit14b1cd25346b1d615616a9c2dfdad9b4e6581e0d
tree509f7d1f8107d435be4e1991f63c3bec152c8c2b
parent29b4c7bb8565118e2c7e08709fce0dbe8bf61011
cifs: Fix locking in cifs_strict_readv()

Fix to take the i_rwsem (through the netfs locking wrappers) before taking
cinode->lock_sem.

Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib")
Reported-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/netfs/direct_read.c
fs/smb/client/cifsglob.h
fs/smb/client/file.c
include/linux/netfs.h