diff options
author | Steve French <sfrench@us.ibm.com> | 2006-11-09 21:25:37 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-11-09 21:25:37 +0000 |
commit | f7b2e8c76b3423a1d2501b9399261e9c9a33e100 (patch) | |
tree | bdbcec5d47991cb668fcd39065ae62f997205f61 /fs/cifs | |
parent | 6e659c63998881e8f4a842edbe86ac8c5cdaee41 (diff) | |
download | op-kernel-dev-f7b2e8c76b3423a1d2501b9399261e9c9a33e100.zip op-kernel-dev-f7b2e8c76b3423a1d2501b9399261e9c9a33e100.tar.gz |
[CIFS] Fix minor problem with previous patch
The patch
NFS stress test generates flood of "close with pending write
was missing an if
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 4b07a8c..2436ed8 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -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); } |