public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sunrpc: raise kernel RPC channel buffer size
@ 2020-10-19  9:33 Roberto Bergantinos Corpas
  2020-10-19 13:20 ` J. Bruce Fields
  0 siblings, 1 reply; 6+ messages in thread
From: Roberto Bergantinos Corpas @ 2020-10-19  9:33 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

Its possible that using AUTH_SYS and mountd manage-gids option a
user may hit the 8k RPC channel buffer limit. This have been observed
on field, causing unanswered RPCs on clients after mountd fails to
write on channel :

rpc.mountd[11231]: auth_unix_gid: error writing reply

Userland nfs-utils uses a buffer size of 32k (RPC_CHAN_BUF_SIZE), so
lets match those two.

Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
---
 net/sunrpc/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index baef5ee43dbb..08df4c599ab3 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -908,7 +908,7 @@ static ssize_t cache_do_downcall(char *kaddr, const char __user *buf,
 static ssize_t cache_slow_downcall(const char __user *buf,
 				   size_t count, struct cache_detail *cd)
 {
-	static char write_buf[8192]; /* protected by queue_io_mutex */
+	static char write_buf[32768]; /* protected by queue_io_mutex */
 	ssize_t ret = -EINVAL;
 
 	if (count >= sizeof(write_buf))
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-24  2:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19  9:33 [PATCH] sunrpc: raise kernel RPC channel buffer size Roberto Bergantinos Corpas
2020-10-19 13:20 ` J. Bruce Fields
2020-10-23  9:44   ` Geert Uytterhoeven
2020-10-24  0:04     ` J. Bruce Fields
2020-10-24  1:29       ` Roberto Bergantinos Corpas
2020-10-24  2:09         ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox