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)
commit52ace1ef1259e119a24a34b45cb800c4e7529090
tree41f8d27ff08c4086025c5894f2cdcd8ee5f205e6
parent3afca265b5f53a0b15b79531c13858049505582d
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