cifs: fix lease break oops in xfstest generic/098
authorSteve French <stfrench@microsoft.com>
Fri, 16 Jun 2023 01:30:51 +0000 (20:30 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 16 Jun 2023 01:39:00 +0000 (20:39 -0500)
commitc7a501366b9c956c3de46040b8b177b4ab47f467
tree293e2c0c3240db409843e32b41e2aec268d2d2d1
parentd1602cb8de61bb24d605b80353ced4b46f35e6c4
cifs: fix lease break oops in xfstest generic/098

umount can race with lease break so need to check if
tcon->ses->server is still valid to send the lease
break response.

Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Fixes: 59a556aebc43 ("SMB3: drop reference to cfile before sending oplock break")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c