]> git.itanic.dy.fi Git - linux-stable/commit
nfsd/blocklayout: accept any minlength
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Oct 2015 13:03:26 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 00:51:54 +0000 (09:51 +0900)
commit271759afb5a49f1d1e5a3cef5c0fdec867f9bba4
tree20b7009323731ff1d098173e8563fc6ad4e70415
parenta20f5eac880c215ef9aeaa147aa991e0f42dd8b0
nfsd/blocklayout: accept any minlength

commit 8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b upstream.

Recent Linux clients have started to send GETLAYOUT requests with
minlength less than blocksize.

Servers aren't really allowed to impose this kind of restriction on
layouts; see RFC 5661 section 18.43.3 for details.

This has been observed to cause indefinite hangs on fsx runs on some
clients.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/blocklayout.c