diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2022-04-07 15:15:49 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-05-24 21:11:17 +0200 |
commit | dd3cd8709ed5f4ae8998e0cd44c05bd26bc879e8 (patch) | |
tree | 6eab597ea6e55c656829b4f2ead5722c17e18cb9 /fs/cifs/smb2transport.c | |
parent | cifs: do not use tcpStatus after negotiate completes (diff) | |
download | linux-dd3cd8709ed5f4ae8998e0cd44c05bd26bc879e8.tar.xz linux-dd3cd8709ed5f4ae8998e0cd44c05bd26bc879e8.zip |
cifs: use new enum for ses_status
ses->status today shares statusEnum with server->tcpStatus.
This has been confusing, and tcon->status has deviated to use
a new enum. Follow suit and use new enum for ses_status as well.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2transport.c')
-rw-r--r-- | fs/cifs/smb2transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c index 01b732641edb..55e79f6ee78d 100644 --- a/fs/cifs/smb2transport.c +++ b/fs/cifs/smb2transport.c @@ -780,7 +780,7 @@ smb2_get_mid_entry(struct cifs_ses *ses, struct TCP_Server_Info *server, return -EAGAIN; } - if (ses->status == CifsNew) { + if (ses->ses_status == SES_NEW) { if ((shdr->Command != SMB2_SESSION_SETUP) && (shdr->Command != SMB2_NEGOTIATE)) { spin_unlock(&cifs_tcp_ses_lock); @@ -789,7 +789,7 @@ smb2_get_mid_entry(struct cifs_ses *ses, struct TCP_Server_Info *server, /* else ok - we are setting up session */ } - if (ses->status == CifsExiting) { + if (ses->ses_status == SES_EXITING) { if (shdr->Command != SMB2_LOGOFF) { spin_unlock(&cifs_tcp_ses_lock); return -EAGAIN; |