diff options
author | Steve French <sfrench@us.ibm.com> | 2005-10-10 23:28:38 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-10-10 23:28:38 +0200 |
commit | 9e2e85f82fa280e937ee42152e7cbaff78be01a2 (patch) | |
tree | 9613f8c41ddbbdfff180034945e14e6fffc8292c /fs/cifs/cifsfs.c | |
parent | [CIFS] Do not shrink tcp sndbuf/rcvbuf from their defaults (diff) | |
download | linux-9e2e85f82fa280e937ee42152e7cbaff78be01a2.tar.xz linux-9e2e85f82fa280e937ee42152e7cbaff78be01a2.zip |
[CIFS] Fix minor build problem with previous changeset
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index fd5eae37f2a8..99e087d3554f 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -408,21 +408,24 @@ static struct quotactl_ops cifs_quotactl_ops = { static void cifs_umount_begin(struct super_block * sblock) { struct cifs_sb_info *cifs_sb; + struct cifsTconInfo * tcon; cifs_sb = CIFS_SB(sb); if(cifs_sb == NULL) - return -EIO; - if(cifs_sb->tcon == NULL) - return -EIO; + return; + + tcon = cifs_sb->tcon; + if(tcon == NULL) + return; down(&tcon->tconSem); if (atomic_read(&tcon->useCount) == 1) tcon->tidStatus = CifsExiting; up(&tcon->tconSem); - if((cifs->sb->tcon->ses) && (cifs_sb->tcon->ses->server)) + if(tcon->ses && tcon->ses->server) { cERROR(1,("wake up tasks now - umount begin not complete")); - wake_up_all(&server->request_q); + wake_up_all(&tcon->ses->server->request_q); } /* BB FIXME - finish add checks for tidStatus BB */ |