]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pnfsblock: fix non-aligned DIO read
authorPeng Tao <bergwolf@gmail.com>
Thu, 23 Aug 2012 16:27:52 +0000 (00:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:32 +0000 (10:10 -0700)
commitd1e1f0083e6cb81df51838f8a7824436edd96a95
tree1ee57fd9f1c6b98626cdcc49f5ec3e67d4537bcd
parent2865269348c0cf5448544f971d1c64afe7cdbc98
pnfsblock: fix non-aligned DIO read

commit f742dc4a32587bff50b13dde9d8894b96851951a upstream.

For DIO read, if it is not sector aligned, we should reject it
and resend via MDS. Otherwise there might be data corruption.
Also teach bl_read_pagelist to handle partial page reads for DIO.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/blocklayout/blocklayout.c