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)
commitf2cca6a7c99fdeadacd0bdc37d825c4bc2b03653
tree56eb1f191ef0846f13f392bf2d207f0ba0460934
parent166cea4dc3a4f66f020cfb9286225ecd228ab61d
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