Skip to content

Commit

Permalink
[CIFS] Fix minor problem with previous patch
Browse files Browse the repository at this point in the history
The patch
	NFS stress test generates flood of "close with pending write

was missing an if

Signed-off-by: Steve French <[email protected]>
  • Loading branch information
Steve French committed Nov 9, 2006
1 parent 6e659c6 commit f7b2e8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ int cifs_close(struct inode *inode, struct file *file)
msleep(timeout);
timeout *= 4;
}
cERROR(1,("close with pending writes"));
if(atomic_read(&pSMBFile->wrtPending))
cERROR(1,("close with pending writes"));
rc = CIFSSMBClose(xid, pTcon,
pSMBFile->netfid);
}
Expand Down

0 comments on commit f7b2e8c

Please sign in to comment.