Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166361
b: refs/heads/master
c: 058daf4
h: refs/heads/master
i:
  166359: 4e75265
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Sep 15, 2009
1 parent 15f5e22 commit f5ce2bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 495e993745a722cfa54d76b97d18e8f30c3e6cea
refs/heads/master: 058daf4f6795fd23fcca41fe53151cdcbbd263ec
6 changes: 3 additions & 3 deletions trunk/fs/cifs/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,14 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)
continue;

cifs_stats_inc(&tcon->num_oplock_brks);
write_lock(&GlobalSMBSeslock);
read_lock(&GlobalSMBSeslock);
list_for_each(tmp2, &tcon->openFileList) {
netfile = list_entry(tmp2, struct cifsFileInfo,
tlist);
if (pSMB->Fid != netfile->netfid)
continue;

write_unlock(&GlobalSMBSeslock);
read_unlock(&GlobalSMBSeslock);
read_unlock(&cifs_tcp_ses_lock);
cFYI(1, ("file id match, oplock break"));
pCifsInode = CIFS_I(netfile->pInode);
Expand All @@ -584,7 +584,7 @@ is_valid_oplock_break(struct smb_hdr *buf, struct TCP_Server_Info *srv)

return true;
}
write_unlock(&GlobalSMBSeslock);
read_unlock(&GlobalSMBSeslock);
read_unlock(&cifs_tcp_ses_lock);
cFYI(1, ("No matching file for oplock break"));
return true;
Expand Down

0 comments on commit f5ce2bb

Please sign in to comment.