cifs: Set witness notification handler for messages from userspace daemon
authorSamuel Cabrero <scabrero@suse.de>
Mon, 30 Nov 2020 18:02:52 +0000 (19:02 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 15:16:22 +0000 (09:16 -0600)
commitfed979a7e082bd9f25f9002c3c4f8740dacd0bc8
tree7a5bb9d692c7a2a55db42200268fc0d7859e73fd
parentbf80e5d4259a192d6b06ae17e79a5e9dab48bf51
cifs: Set witness notification handler for messages from userspace daemon

+ Set a handler for the witness notification messages received from the
  userspace daemon.

+ Handle the resource state change notification. When the resource
  becomes unavailable or available set the tcp status to
  CifsNeedReconnect for all channels.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_swn.c
fs/cifs/cifs_swn.h
fs/cifs/netlink.c
include/uapi/linux/cifs/cifs_netlink.h