Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2779126yba; Mon, 6 May 2019 11:22:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUspQff/mXhqy2cXWPSpyHtMPbM3fZ9E2bUVUygI58V4ceRBC4FUWtSylC+k16qgerz7Qq X-Received: by 2002:a63:fd08:: with SMTP id d8mr33835521pgh.141.1557166973821; Mon, 06 May 2019 11:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557166973; cv=none; d=google.com; s=arc-20160816; b=fbsHFDiEHRJ/38tieaAXu6rcEtFojilz0IP32inbFFZ+4aBw01M/hu86FjSd3Nx/tz lHAKsOc4BHqiggv13Lwhr5lL7ai+J3kp/fmIZdKTic5G/A0knlVDjWFZRvZcd37ZjSnq hakQJRVHfBznuanJZg4Ki6Dn8Ma7DQQfpIx59vrD1mFW1muHx2GXVRWO3PcKaDMqxy6C +/TiC8/rKKrQZkUBd4N/luF9Zw4PMrYBNPt2xYBeLK2eNyJ0evuLyYYN+TDOAuVEIL7i 5ECJs24A90/WzgeLsV02WoUea3A0jI0P/v2Jf8MQRuxjQY8pLlAAEn23LFL91fUTWDno 6HkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=oDbwnI3l1K0MIOPjeGab0oahGhi5Gz+Po8dE8jMLnCo=; b=pQl97x83pOUxbpC0SaUcxGAX+B7DVsWO6T4x04Ymsfp872vtjDmT4HtR1crIoyltLK gyHSZxbRkKoUsscPUbl9nvzTUBfORSKVYJuK5ht162HL7fO5w8pDy/Jg1/XqSQKI4vvQ W6OSM0m4UVuNm7DxcROcqr1RhwFSBllT2BflTrFxYrNm23vK5FQvBStfsdAWZTYQZAN/ k78iFCvjlNw4Pdpptqj/0T1krFyTOrW9mLabwQ8tg1wPas6FOpt76yUPW08z8fqPWuI9 /u5xTa1RNobdiXN0pAru3dbEcL1gjJL4kO0D29nxrVj5ekPIY8g1YNRx2xuoJyAxMBOC Ep6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=z2gQjW+C; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si16149280pls.395.2019.05.06.11.22.28; Mon, 06 May 2019 11:22:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=z2gQjW+C; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbfEFSW0 (ORCPT + 99 others); Mon, 6 May 2019 14:22:26 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:48372 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfEFSW0 (ORCPT ); Mon, 6 May 2019 14:22:26 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x46IJIN1085600; Mon, 6 May 2019 18:22:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=oDbwnI3l1K0MIOPjeGab0oahGhi5Gz+Po8dE8jMLnCo=; b=z2gQjW+CUfOWVfW+0Wb7c6WP2fm7pg8/8udUEDUmpZh2GIvebjisWRK2S+l/567s0tts vG/LAWI21JVEqd3NKhAlBLCrcgn2QYyCfwOBylwj9jPrO5OSl9gzZxqzVW4vf9RXbaND USDDGwnJ572DdaFRRMeTUHpnQdVaJ2pQnBVCZRmaJBI6hM4l1hSMAEkzSOcJS5wURl+B TwBwUPIwUi7jBw/HAYUnXVtm44/D3P08JkNp68j8G96GCZUPs0vl9vOb8oyKxVz2+hqH Xq1JbVuTOecHXTVGRKN9+f9gQpJ3mgH+QLF2154hVdGy1nueEN7Xrl26G4pX5k6zM32W xQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2s94b0gdku-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 06 May 2019 18:22:24 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x46ILr11131036; Mon, 6 May 2019 18:22:23 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2sagytgjtw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 06 May 2019 18:22:23 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x46IMMie007130; Mon, 6 May 2019 18:22:22 GMT Received: from anon-dhcp-171.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 06 May 2019 11:22:22 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [RFC PATCH 0/5] bh-safe lock removal for SUNRPC From: Chuck Lever In-Reply-To: <20190503111841.4391-1-trond.myklebust@hammerspace.com> Date: Mon, 6 May 2019 14:22:21 -0400 Cc: Linux NFS Mailing List Content-Transfer-Encoding: 7bit Message-Id: <39608ABA-9E3F-443A-9F4C-7B91B885C7DD@oracle.com> References: <20190503111841.4391-1-trond.myklebust@hammerspace.com> To: Trond Myklebust X-Mailer: Apple Mail (2.3445.104.8) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9249 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905060153 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9249 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905060153 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Trond- > On May 3, 2019, at 7:18 AM, Trond Myklebust wrote: > > This patchset aims to remove the bh-safe locks on the client side. > At this time it should be seen as a toy/strawman effort in order to > help the community figure out whether or not there are setups out > there that are actually seeing performance bottlenecks resulting > from taking bh-safe locks inside other spinlocks. What kernel does this patch set apply to? I've tried both v5.0 and v5.1, but there appear to be some changes that I'm missing. The first patch does not apply cleanly. > Trond Myklebust (5): > SUNRPC: Replace the queue timer with a delayed work function > SUNRPC: Replace direct task wakeups from softirq context > SUNRPC: Remove the bh-safe lock requirement on xprt->transport_lock > SUNRPC: Remove the bh-safe lock requirement on the > rpc_wait_queue->lock > SUNRPC: Reduce the priority of the xprtiod queue > > include/linux/sunrpc/sched.h | 3 +- > include/linux/sunrpc/xprtsock.h | 5 + > net/sunrpc/sched.c | 76 +++++++++------- > net/sunrpc/xprt.c | 61 ++++++------- > net/sunrpc/xprtrdma/rpc_rdma.c | 4 +- > net/sunrpc/xprtrdma/svc_rdma_backchannel.c | 4 +- > net/sunrpc/xprtrdma/svc_rdma_transport.c | 8 +- > net/sunrpc/xprtsock.c | 101 +++++++++++++++++---- > 8 files changed, 168 insertions(+), 94 deletions(-) > > -- > 2.21.0 > -- Chuck Lever