Anna Schumaker a60214c246 NFS: Allow very small rsize & wsize again
940261a19508 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: 940261a19508 ("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>
2022-12-06 12:30:58 -05:00
..
2022-08-10 14:04:32 -07:00
2022-10-13 09:58:42 -07:00
2022-05-09 23:12:33 -04:00
2021-04-05 09:04:20 -04:00
2022-12-06 12:29:35 -05:00
2022-10-13 09:58:42 -07:00
2022-05-09 16:36:48 -04:00
2022-11-27 22:10:00 -05:00
2022-09-12 17:53:46 -04:00