Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71548
b: refs/heads/master
c: 4efa53f
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Sep 11, 2007
1 parent b53544d commit 54d7803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15745320f374aa6cbfe4836b76469159c0f49640
refs/heads/master: 4efa53f0907bb4378015c129a2c11b8d3a90bce2
2 changes: 2 additions & 0 deletions trunk/fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,13 +545,15 @@ int cifs_close(struct inode *inode, struct file *file)
} else
rc = -EBADF;

read_lock(&GlobalSMBSeslock);
if (list_empty(&(CIFS_I(inode)->openFileList))) {
cFYI(1, ("closing last open instance for inode %p", inode));
/* if the file is not open we do not know if we can cache info
on this inode, much less write behind and read ahead */
CIFS_I(inode)->clientCanCacheRead = FALSE;
CIFS_I(inode)->clientCanCacheAll = FALSE;
}
read_unlock(&GlobalSMBSeslock);
if ((rc == 0) && CIFS_I(inode)->write_behind_rc)
rc = CIFS_I(inode)->write_behind_rc;
FreeXid(xid);
Expand Down

0 comments on commit 54d7803

Please sign in to comment.