Wei Yongjun
a0d24b295a
nfsd: fix hung up of nfs client while sync write data to nfs server
...
Commit 'Short write in nfsd becomes a full write to the client'
(31dec2538e45e9fff2007ea1f4c6bae9f78db724) broken the sync write.
With the following commands to reproduce:
$ mount -t nfs -o sync 192.168.0.21:/nfsroot /mnt
$ cd /mnt
$ echo aaaa > temp.txt
Then nfs client is hung up.
In SYNC mode the server alaways return the write count 0 to the
client. This is because the value of host_err in nfsd_vfs_write()
will be overwrite in SYNC mode by 'host_err=nfsd_sync(file);',
and then we return host_err(which is now 0) as write count.
This patch fixed the problem.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2009-05-27 17:40:06 -04:00
..
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:08 -07:00
2009-05-09 10:51:34 -04:00
2009-05-09 10:51:34 -04:00
2009-04-20 23:01:15 -04:00
2009-05-02 15:36:09 -07:00
2009-04-08 10:21:43 -07:00
2009-01-22 13:15:57 +03:00
2009-05-14 19:18:44 -07:00
2009-04-03 16:42:41 +01:00
2009-05-23 18:57:25 +00:00
2009-03-27 14:44:00 -04:00
2009-04-21 12:59:21 -07:00
2009-04-02 19:05:08 -07:00
2009-03-23 16:25:46 +01:00
2009-05-15 08:03:23 -07:00
2009-03-11 12:23:59 -05:00
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:09 -07:00
2009-03-31 19:44:38 +03:00
2009-04-27 16:49:52 +02:00
2009-04-08 13:15:10 -04:00
2009-05-15 09:07:28 -04:00
2009-04-17 09:32:11 -07:00
2009-01-22 13:15:58 +03:00
2009-04-03 16:42:39 +01:00
2009-05-13 16:32:57 -07:00
2009-05-10 10:49:08 -07:00
2009-04-13 15:04:29 -07:00
2009-04-02 21:09:10 -07:00
2009-03-27 14:44:00 -04:00
2009-05-09 10:51:34 -04:00
2009-04-02 19:04:53 -07:00
2009-05-13 08:04:45 -07:00
2009-04-02 19:05:09 -07:00
2009-04-24 08:37:40 -07:00
2009-04-14 07:50:56 -04:00
2009-04-06 14:56:26 -07:00
2009-03-31 23:00:26 -04:00
2009-05-06 17:19:36 -04:00
2009-04-02 19:05:09 -07:00
2009-04-20 23:02:51 -04:00
2009-05-18 20:11:12 -07:00
2009-05-27 17:40:06 -04:00
2009-05-22 20:49:04 +09:00
2009-05-06 16:36:09 -07:00
2009-04-01 08:59:18 -07:00
2009-05-09 10:49:40 -04:00
2009-04-02 21:09:10 -07:00
2009-01-05 11:54:28 -05:00
2009-04-02 00:49:02 +02:00
2009-05-09 10:49:40 -04:00
2009-04-02 19:05:10 -07:00
2009-04-27 16:49:52 +02:00
2009-04-07 07:39:59 -07:00
2009-05-17 11:45:45 -07:00
2009-05-09 10:49:41 -04:00
2009-03-27 14:44:00 -04:00
2009-05-13 03:25:20 +01:00
2009-04-20 23:02:50 -04:00
2009-04-02 19:05:10 -07:00
2009-05-09 10:49:40 -04:00
2009-04-02 13:36:28 +02:00
2009-05-09 10:49:42 -04:00
2009-05-02 16:52:50 -07:00
2009-03-19 15:57:18 -07:00
2009-03-27 14:44:03 -04:00
2009-03-26 02:18:35 +01:00
2009-05-02 15:36:10 -07:00
2009-03-31 23:00:27 -04:00
2009-01-08 12:04:47 +00:00
2009-01-06 15:59:19 -08:00
2009-03-31 23:00:28 -04:00
2009-03-24 12:35:17 +01:00
2009-04-28 20:24:29 +02:00
2009-04-01 07:07:16 -04:00
2009-05-02 15:36:09 -07:00
2009-01-06 15:59:13 -08:00
2009-04-20 23:01:16 -04:00
2009-04-24 07:39:45 -07:00
2009-05-09 10:49:40 -04:00
2009-01-14 14:15:18 +01:00
2009-04-15 12:10:13 +02:00
2009-04-02 19:04:48 -07:00
2009-04-01 08:59:20 -07:00
2009-05-12 14:11:35 -07:00
2009-05-09 10:49:42 -04:00
2009-05-11 12:18:06 -07:00
2009-03-30 15:22:03 +02:00
2009-04-20 23:02:52 -04:00
2009-03-31 23:00:27 -04:00
2009-04-03 15:24:35 -07:00
2009-03-31 23:00:26 -04:00
2009-05-09 10:49:41 -04:00
2009-03-31 23:00:26 -04:00
2009-05-06 16:36:09 -07:00
2009-01-14 14:15:30 +01:00
2009-04-07 08:31:16 -07:00
2009-01-09 16:54:41 -08:00
2009-05-09 10:49:40 -04:00
2009-01-14 14:15:25 +01:00
2009-04-07 08:31:16 -07:00
2009-04-01 07:38:54 -04:00
2009-05-09 10:49:42 -04:00
2009-05-09 10:51:34 -04:00
2009-01-14 14:15:29 +01:00
2009-05-09 10:49:42 -04:00
2009-04-15 12:10:12 +02:00
2009-04-04 14:20:34 -07:00
2009-01-14 14:15:31 +01:00
2009-01-14 14:15:31 +01:00
2009-03-30 22:05:11 +10:30
2009-01-14 14:15:31 +01:00
2009-04-17 07:38:07 -07:00
2009-04-20 23:02:52 -04:00
2009-05-09 10:49:41 -04:00
2009-03-27 14:48:34 -07:00
2009-02-18 15:37:53 -08:00
2009-01-14 14:15:30 +01:00
2009-04-20 23:02:50 -04:00