]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31dece72c276e6fead1dd28fbbb5e937ab853df1
treef81e6abb4e41b7a61900e8db036e730e09c11ad1
parent1e45c63ce25e788a58dd7510286ece671b6cb0cb
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