]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFS: Prevent 3.0 from crashing if it receives a partial layout
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2011 17:11:07 +0000 (10:11 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 16 Dec 2011 01:38:15 +0000 (17:38 -0800)
commit61c79f246197208616151e01ea8730f2d6ff5201
treed435710850798534e262b1319c9609bf3d252648
parent799424c7c9a1b7446e76b3af831679db0e4bbd31
NFS: Prevent 3.0 from crashing if it receives a partial layout

This is a backport of critical parts of
commit 7c24d9489f "NFSv4.1: File layout only supports whole file layouts"

It prevents the file layout driver from (incorrectly) using
partial layouts, but ignores the part of the referenced commmit that
relies on additional machinery to change the LAYOUTGET request
based on layout driver.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.c