Skip to content

Commit 27a1e8a

Browse files
Roberto Bergantinos CorpasJ. Bruce Fields
authored andcommitted
sunrpc: raise kernel RPC channel buffer size
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> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent c327a31 commit 27a1e8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sunrpc/cache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ static ssize_t cache_do_downcall(char *kaddr, const char __user *buf,
909909
static ssize_t cache_slow_downcall(const char __user *buf,
910910
size_t count, struct cache_detail *cd)
911911
{
912-
static char write_buf[8192]; /* protected by queue_io_mutex */
912+
static char write_buf[32768]; /* protected by queue_io_mutex */
913913
ssize_t ret = -EINVAL;
914914

915915
if (count >= sizeof(write_buf))

0 commit comments

Comments
 (0)