]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:30 +0000 (10:22 +0200)
commit5cb0349cfcdebb0090add17a6345eaa5c43f4844
tree898f82852a5788dafd1eef29c053b00cb3a694e8
parentc600e23fbc405e0ad24d161ca05d61a725a72d6f
cifs: if deferred close is disabled then close files immediately

[ Upstream commit df9d70c18616760c6504b97fec66b6379c172dbb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/file.c