cifs: fix lease break oops in xfstest generic/098
authorSteve French <stfrench@microsoft.com>
Sun, 11 Jun 2023 16:23:32 +0000 (11:23 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 14 Jun 2023 15:15:01 +0000 (10:15 -0500)
commitc774e6779f38bf36f0cce65e30793704bab4b0d7
treed7c1ae595c14e100bc6ab7d6b53285e80437ed18
parent5e90aa21eb1372736e08cee0c0bf47735c5c4b95
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/smb/client/file.c