Vivek Trivedi
5a7c9eec9f
NFS: fix sb->s_id in nfs debug prints
NFS bdi flush thread in ps output is printed like "flush-<major number
in decimal>:<minor number in decimal>"
For example:
$ ps aux | grep flush
2079 root 0 SW [flush-0:18]
^^^^
nfs_bdi_register()
==> bdi_register_dev()
==> bdi_register(bdi, NULL, "%u:%u", MAJOR(dev), MINOR(dev));
^^^^^
However, NFS sb->s_id store major:minor number in hex:
nfs_initialise_sb()
==> snprintf(sb->s_id, sizeof(sb->s_id),
"%x:%x", MAJOR(sb->s_dev), MINOR(sb->s_dev));
^^^^^
If we enable nfs debug prints using command:
$ rpcdebug -m nfs -s all
write to a file:
$ dd if=/dev/zero of=<NFS Mount>/testfile.txt bs=32768 count=1
Without Patch:
[ 2431.032000] NFS: 0 initiated write call (req 0:12/40, 32768 bytes
@ offset 0) ^^^^
With Patch:
[ 2431.032000] NFS: 0 initiated write call (req 0:18/40, 32768 bytes
@ offset 0) ^^^^
We should store NFS "s->s_id" in decimal to avoid confusion between NFS
flush thread name(in ps output) and NFS debug prints.
Signed-off-by: Vivek Trivedi <vtrivedi018@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2012-03-21 11:45:28 -04:00
..
2012-03-21 09:31:44 -04:00
2012-03-21 09:31:47 -04:00
2012-01-31 18:20:26 -05:00
2012-01-31 18:20:26 -05:00
2012-03-06 10:32:44 -05:00
2012-03-12 18:15:22 -04:00
2012-03-11 15:14:16 -04:00
2012-02-15 00:19:43 -05:00
2012-03-12 12:51:40 -04:00
2012-03-11 15:14:16 -04:00
2012-03-10 11:54:36 -05:00
2012-03-02 15:36:13 -05:00
2012-03-21 09:31:45 -04:00
2012-03-11 15:14:16 -04:00
2012-01-31 18:20:26 -05:00
2012-01-31 19:28:08 -05:00
2011-10-18 09:14:34 -07:00
2012-03-21 09:31:44 -04:00
2009-09-23 14:36:39 -04:00
2011-03-24 17:03:14 -04:00
2012-03-12 12:51:42 -04:00
2012-03-20 13:08:26 -04:00
2012-03-17 11:09:33 -04:00
2010-05-14 15:09:31 -04:00
2012-03-20 13:08:26 -04:00
2011-07-31 12:18:15 -04:00
2012-03-20 13:08:26 -04:00
2012-02-16 15:05:16 -05:00
2012-03-11 10:57:35 -04:00
2012-01-31 19:28:20 -05:00
2012-03-11 15:14:16 -04:00
2012-03-21 09:31:46 -04:00
2012-01-31 19:28:20 -05:00
2012-03-20 13:08:25 -04:00
2012-03-20 13:08:26 -04:00
2012-03-10 17:14:10 -05:00
2012-03-11 15:14:16 -04:00
2012-03-02 15:36:38 -05:00
2012-03-21 09:31:46 -04:00
2011-08-24 15:07:37 -04:00
2012-03-20 13:08:25 -04:00
2012-03-14 21:55:01 -04:00
2012-03-20 13:08:26 -04:00
2012-03-10 17:14:10 -05:00
2012-03-21 09:31:44 -04:00
2012-03-17 11:09:33 -04:00
2012-03-21 09:31:44 -04:00
2012-03-21 09:31:46 -04:00
2012-03-21 09:31:45 -04:00
2012-03-21 11:45:28 -04:00
2010-03-30 22:02:32 +09:00
2012-02-06 18:48:01 -05:00
2012-03-21 09:31:46 -04:00
2012-03-21 09:31:45 -04:00