nfsd/blocklayout: accept any minlength
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Oct 2015 13:03:26 +0000 (15:03 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 9 Oct 2015 20:11:40 +0000 (16:11 -0400)
commit8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b
tree3da3578adea31cc917590e79499b4349eb03e741
parentc91aed9896946721bb30705ea2904edb3725dd61
nfsd/blocklayout: accept any minlength

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.

Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/blocklayout.c