Commit f7b2e8c7 authored by Steve French's avatar Steve French

[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: default avatarSteve French <sfrench@us.ibm.com>
parent 6e659c63
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment