cifs: if deferred close is disabled then close files immediately
authorBharath SM <bharathsm@microsoft.com>
Fri, 7 Jul 2023 15:29:01 +0000 (15:29 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 10 Jul 2023 15:37:12 +0000 (10:37 -0500)
commitdf9d70c18616760c6504b97fec66b6379c172dbb
tree0867ab2615b27abbea5ec35a6fc90a9a4deb68b8
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
cifs: if deferred close is disabled then close files immediately

If defer close timeout value is set to 0, then there is no
need to include files in the deferred close list and utilize
the delayed worker for closing. Instead, we can close them
immediately.

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/file.c