Commit 8cfc686
committed
NFS: Allow very small rsize & wsize again
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2107347
commit a60214c
Author: Anna Schumaker <Anna.Schumaker@Netapp.com>
Date: Wed Nov 30 15:30:47 2022 -0500
NFS: Allow very small rsize & wsize again
940261a introduced nfs_io_size() to clamp the iosize to a multiple
of PAGE_SIZE. This had the unintended side effect of no longer allowing
iosizes less than a page, which could be useful in some situations.
UDP already has an exception that causes it to fall back on the
power-of-two style sizes instead. This patch adds an additional
exception for very small iosizes.
Reported-by: Jeff Layton <jlayton@kernel.org>
Fixes: 940261a ("NFS: Allow setting rsize / wsize to a multiple of PAGE_SIZE")
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>1 parent 1ac84d4 commit 8cfc686
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
743 | | - | |
744 | 742 | | |
745 | | - | |
| 743 | + | |
746 | 744 | | |
747 | | - | |
| 745 | + | |
748 | 746 | | |
749 | 747 | | |
750 | 748 | | |
| |||
0 commit comments