]> git.ipfire.org Git - people/ms/linux.git/commit - fs/cifs/smb2inode.c
cifs: for compound requests, use open handle if possible
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 30 Jul 2021 06:43:09 +0000 (06:43 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Nov 2021 17:05:20 +0000 (11:05 -0600)
commitb6f2a0f89d7ed80382ec9cba8fc521129ae9baa1
treef81e6abb4e41b7a61900e8db036e730e09c11ad1
parent4ac0536f8874a903a72bddc57eb88db774261e3a
cifs: for compound requests, use open handle if possible

For smb2_compound_op, it is possible to pass a ref to
an already open file. We should be passing it whenever possible.
i.e. if a matching handle is already kept open.

If we don't do that, we will end up breaking leases for files
kept open on the same client.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2inode.c