Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3093702pxu; Mon, 19 Oct 2020 03:55:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyC2ABWvDvdV03D2hwQjldoRRP4xVMCZiVYFUBKds2c7CS09La2H5Yeg/EqfPlVlp9yc2m X-Received: by 2002:a05:6402:220f:: with SMTP id cq15mr17900378edb.24.1603104935721; Mon, 19 Oct 2020 03:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603104935; cv=none; d=google.com; s=arc-20160816; b=n/Z43piLQHZnsdQGNX/EwIXArj/F5jokBfK3X8tJ0oQxPE4fFbHLG+/6/AURi6BCim YIV5DcKNeQhFyzVpbCatBw+EIBFPCxT+lpO3L0oNB4OZvJQceqrrIH0cAHhiePFnMLiT j2nNEIbqKmX7mYZEEIcBoysDBocAleFGWK19enn6G5rigyBU4pCW3AiclMSbgSvwSHbC eT9of/1jq8//XV0wGE+TU/YHU6biIiC9N4cYyuD22ceyTVKdQjnk0Rg62ItSAjj2vxBX scWypFAn97nWJeIcMwpsHi6zhZy8UW1oSmI3UuUj7gdCghho/UijCF511Q4KluKyXc7q 0pkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1y0arW5wnpA4t/DZKMGDdX2hQ2fWQVeIfL02zg8aCKs=; b=oU8dBL25oOl48I1JKSth3J7P0PeCt/QeMS2BcOXuNjoYn6mRwKm4OGiWZBi9qsyF89 pvtVVZM3XLqhBzqxVt1Wz/CEC/8279uNAidDfQe0GHaupJViad2+g0a4PANozVnemw2Y VLj+FFYW9olS6L+YpFiRxGLN3tgY3MmKPdrCNCzgb5h2OpfMXovwYJw9JbiRaV4pIpl/ SAX/z/iP72T08IBQd+UvOiA4OEMDpRHl7DotG1pmTFcRndCOxWrE+gvcLKDi/CsiuQxe vrtg51pAk+OKHtfe/QIyCaLHXdVH3wlFyCTKLgZN765n8gUToiJPYPvIkMFuoKcPaAnt GT/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=du172Ymu; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si7447905ejx.75.2020.10.19.03.55.05; Mon, 19 Oct 2020 03:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=du172Ymu; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727439AbgJSJeG (ORCPT + 99 others); Mon, 19 Oct 2020 05:34:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60207 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgJSJeG (ORCPT ); Mon, 19 Oct 2020 05:34:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603100045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=1y0arW5wnpA4t/DZKMGDdX2hQ2fWQVeIfL02zg8aCKs=; b=du172YmuhavGxi4h33qS0jKKCiMipHpJwrk/N0SwtxOXy2TqbXT4FNGp/LsDIfQ4ferGEc b65jn5EA6jr4ohKSYCdCzYourXWREnoc8wTJbBrtDLNxdcuHqpmkwD9K/qDJGOpXJRogvD ncYl/aAowVoUszpNQBaIpErScvP94zI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-411-AHjXRvlPPUyussd3QMRbPA-1; Mon, 19 Oct 2020 05:34:00 -0400 X-MC-Unique: AHjXRvlPPUyussd3QMRbPA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E631B835B48; Mon, 19 Oct 2020 09:33:58 +0000 (UTC) Received: from idlethread.redhat.com (unknown [10.33.36.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0ECA85576F; Mon, 19 Oct 2020 09:33:57 +0000 (UTC) From: Roberto Bergantinos Corpas To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org Subject: [PATCH] sunrpc: raise kernel RPC channel buffer size Date: Mon, 19 Oct 2020 11:33:56 +0200 Message-Id: <20201019093356.7395-1-rbergant@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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 --- 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