]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Fix persistent handles re-opening on reconnect
authorPavel Shilovsky <pshilov@microsoft.com>
Sat, 8 Oct 2016 00:26:36 +0000 (17:26 -0700)
committerSteve French <smfrench@gmail.com>
Fri, 14 Oct 2016 00:48:55 +0000 (19:48 -0500)
commit8eaef0d370b9053b3db97c294bea9067bc354c8a
tree56eb1f191ef0846f13f392bf2d207f0ba0460934
parent78c89f85fae4aa1123e1c23ead379ae08945cabe
CIFS: Fix persistent handles re-opening on reconnect

openFileList of tcon can be changed while cifs_reopen_file() is called
that can lead to an unexpected behavior when we return to the loop.
Fix this by introducing a temp list for keeping all file handles that
need to be reopen.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/file.c