]> git.baikalelectronics.ru Git - kernel.git/commit
fs/cifs: reopen persistent handles on reconnect
authorSteve French <smfrench@gmail.com>
Fri, 23 Sep 2016 00:23:56 +0000 (19:23 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 12 Oct 2016 17:08:33 +0000 (12:08 -0500)
commit1db74c06e7dbb9f1da2a4184bbf2cc70598461db
tree41f8d27ff08c4086025c5894f2cdcd8ee5f205e6
parent5e84d4bfc26f6644f0c915c52f71e069aef7ca26
fs/cifs: reopen persistent handles on reconnect

Continuous Availability features like persistent handles
require that clients reconnect their open files, not
just the sessions, soon after the network connection comes
back up, otherwise the server will throw away the state
(byte range locks, leases, deny modes) on those handles
after a timeout.

Add code to reconnect handles when use_persistent set
(e.g. Continuous Availability shares) after tree reconnect.

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Germano Percossi <germano.percossi@citrix.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsproto.h
fs/cifs/file.c
fs/cifs/smb2pdu.c