Commit a907297d authored by Trond Myklebust's avatar Trond Myklebust

Subject: [PATCH] NFS: short write warning

 Recently a patch set was accepted to allow the Linux NFS client to handle
 short writes by retrying the unwritten portion of the request.  The only
 case that now results in an error is when the server makes no progress;
 that is, writes zero bytes.

 This patch changes the kernel log warning that is generated in that case
 to reflect the error condition more accurately.
Signed-off-by: default avatarChuck Lever <cel@netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@fys.uio.no>
parent 6fc06ef9
...@@ -1197,7 +1197,8 @@ void nfs_writeback_done(struct rpc_task *task) ...@@ -1197,7 +1197,8 @@ void nfs_writeback_done(struct rpc_task *task)
} }
if (time_before(complain, jiffies)) { if (time_before(complain, jiffies)) {
printk(KERN_WARNING printk(KERN_WARNING
"NFS: Server wrote less than requested.\n"); "NFS: Server wrote zero bytes, expected %u.\n",
argp->count);
complain = jiffies + 300 * HZ; complain = jiffies + 300 * HZ;
} }
/* Can't do anything about it except throw an error. */ /* Can't do anything about it except throw an error. */
......
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