]> 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)
commitbf58bb8acdaee18d6e7b0d464ef3851fed445a5b
tree56eb1f191ef0846f13f392bf2d207f0ba0460934
parent89c24464892e6f49d92f94f01de7b46e83c92c8e
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