summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-09 15:03:26 +0200
committerJ. Bruce Fields <bfields@redhat.com>2015-10-09 16:11:40 -0400
commit8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b (patch)
tree3da3578adea31cc917590e79499b4349eb03e741 /fs/nfsd
parentc91aed9896946721bb30705ea2904edb3725dd61 (diff)
downloadop-kernel-dev-8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b.zip
op-kernel-dev-8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b.tar.gz
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/blocklayout.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/nfsd/blocklayout.c b/fs/nfsd/blocklayout.c
index cdefaa3..c29d942 100644
--- a/fs/nfsd/blocklayout.c
+++ b/fs/nfsd/blocklayout.c
@@ -56,14 +56,6 @@ nfsd4_block_proc_layoutget(struct inode *inode, const struct svc_fh *fhp,
u32 device_generation = 0;
int error;
- /*
- * We do not attempt to support I/O smaller than the fs block size,
- * or not aligned to it.
- */
- if (args->lg_minlength < block_size) {
- dprintk("pnfsd: I/O too small\n");
- goto out_layoutunavailable;
- }
if (seg->offset & (block_size - 1)) {
dprintk("pnfsd: I/O misaligned\n");
goto out_layoutunavailable;
OpenPOWER on IntegriCloud