Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12069
b: refs/heads/master
c: 9e2e85f
h: refs/heads/master
i:
  12067: c3c7950
v: v3
  • Loading branch information
Steve French committed Oct 10, 2005
1 parent 78935fd commit d94b1c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b387eaeb666f6a5e24990a1f4d6a0447ae14315d
refs/heads/master: 9e2e85f82fa280e937ee42152e7cbaff78be01a2
13 changes: 8 additions & 5 deletions trunk/fs/cifs/cifsfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit d94b1c8

Please sign in to comment.