diff options
Diffstat (limited to 'fs')
-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 4b07a8cc4633..2436ed8fc840 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -498,7 +498,8 @@ int cifs_close(struct inode *inode, struct file *file) | |||
498 | msleep(timeout); | 498 | msleep(timeout); |
499 | timeout *= 4; | 499 | timeout *= 4; |
500 | } | 500 | } |
501 | cERROR(1,("close with pending writes")); | 501 | if(atomic_read(&pSMBFile->wrtPending)) |
502 | cERROR(1,("close with pending writes")); | ||
502 | rc = CIFSSMBClose(xid, pTcon, | 503 | rc = CIFSSMBClose(xid, pTcon, |
503 | pSMBFile->netfid); | 504 | pSMBFile->netfid); |
504 | } | 505 | } |