From: Peng Tao Date: Thu, 23 Aug 2012 16:27:48 +0000 (+0800) Subject: NFSv41: fix DIO write_io calculation X-Git-Tag: v3.7-rc1~58^2~40 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7acdb026818455638543b04b68d4a580c367fba8;p=pandora-kernel.git NFSv41: fix DIO write_io calculation pnfs_within_mdsthreshold() is called inside pg_init. We need to set read_io/write_io before that. Otherwise we fail pnfs_within_mdsthreshold() and IO goes to MDS. A simple test case: dd if=foo of=/mnt/pnfs/bar bs=10M count=1 oflag=direct Signed-off-by: Peng Tao Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed