]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
NFSv41: fix DIO write_io calculation
authorPeng Tao <bergwolf@gmail.com>
Thu, 23 Aug 2012 16:27:48 +0000 (00:27 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 22:37:34 +0000 (15:37 -0700)
commit7acdb026818455638543b04b68d4a580c367fba8
treea765a5fe13553aad3fc1aeb8c4e8685242654bde
parent6f2ea7f2a3ff3cd342bface43f8b4bf5e431cf36
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 <tao.peng@emc.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c