From: Steve French Date: Thu, 9 Nov 2006 21:25:37 +0000 (+0000) Subject: [CIFS] Fix minor problem with previous patch X-Git-Tag: v2.6.19-rc6~32^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b2e8c76b3423a1d2501b9399261e9c9a33e100;p=linux-2.6 [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 --- diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 4b07a8cc46..2436ed8fc8 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); }