summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-11-07 16:31:16 +0000
committerSteve French <sfrench@us.ibm.com>2006-11-07 16:31:16 +0000
commit4891d53956abd4ad9d94127c50d931124319a324 (patch)
treea6bc60843961556e72de24230fb6fc5f46173f12 /fs/cifs
parentc836b7716a97021128da43e6fdb61096d5c4156d (diff)
downloadlinux-4891d53956abd4ad9d94127c50d931124319a324.tar.gz
linux-4891d53956abd4ad9d94127c50d931124319a324.tar.bz2
linux-4891d53956abd4ad9d94127c50d931124319a324.zip
[CIFS] NFS stress test generates flood of "close with pending write" messages
Informational/debug message was being logged too often. The error case of logging having to send a close with (presumably stuck on buggy server) pending writes is still logged. Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/file.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 7e056b9b49e8..4b07a8cc4633 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -492,10 +492,13 @@ int cifs_close(struct inode *inode, struct file *file)
the struct would be in each open file,
but this should give enough time to
clear the socket */
- cERROR(1,("close with pending writes"));
+#ifdef CONFIG_CIFS_DEBUG2
+ cFYI(1,("close delay, write pending"));
+#endif /* DEBUG2 */
msleep(timeout);
timeout *= 4;
- }
+ }
+ cERROR(1,("close with pending writes"));
rc = CIFSSMBClose(xid, pTcon,
pSMBFile->netfid);
}