]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Handle race conditions during rename
authorRohith Surabattula <rohiths@microsoft.com>
Thu, 29 Jul 2021 07:45:29 +0000 (07:45 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 12 Aug 2021 16:29:54 +0000 (11:29 -0500)
commitce1576668cc2ddf022971b6356e8422dba82af7f
treee2e6e814c984cf9620ac6b5cbbb31953ee7bf852
parent00ffd2bc1f43d20ef5b37e8c9109868148d6edb7
cifs: Handle race conditions during rename

When rename is executed on directory which has files for which
close is deferred, then rename will fail with EACCES.

This patch will try to close all deferred files when EACCES is received
and retry rename on a directory.

Signed-off-by: Rohith Surabattula <rohiths@microsoft.com>
Cc: stable@vger.kernel.org # 5.13
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c
fs/cifs/misc.c