From patchwork Wed Apr 6 18:07:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 12804026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03395C433EF for ; Wed, 6 Apr 2022 20:12:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbiDFUOf (ORCPT ); Wed, 6 Apr 2022 16:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235656AbiDFUNZ (ORCPT ); Wed, 6 Apr 2022 16:13:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A67190EB2 for ; Wed, 6 Apr 2022 11:07:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6DC0DB82004 for ; Wed, 6 Apr 2022 18:07:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F290FC385A9 for ; Wed, 6 Apr 2022 18:07:56 +0000 (UTC) Subject: [PATCH v2 0/2] Fix request deferral for NFS/RDMA From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Wed, 06 Apr 2022 14:07:55 -0400 Message-ID: <164926821551.12216.9112595778893638551.stgit@klimt.1015granger.net> User-Agent: StGit/1.5.dev1+g8516920 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Last week Trond reported a server crash in svc_rdma_sendto() that seemed related to deferral of a request incoming on an RPC/RDMA transport. A link to that report appears in the first patch below. The first patch in this series addresses the crash, and the second fixes a related observability crash. The other patches from v1 have been postponed to 5.19. Comments, opinions, and Reviewed-by's are appreciated! Since v1: - Series trimmed down to just what will go to 5.18-rc - 2nd patch re-worked so it can be backported to recent stable - Addressed a few checkpatch.pl nits --- Chuck Lever (2): SUNRPC: Fix NFSD's request deferral on RDMA transports SUNRPC: Fix the svc_deferred_event trace class include/linux/sunrpc/svc.h | 1 + include/trace/events/sunrpc.h | 9 +++++---- net/sunrpc/svc_xprt.c | 3 +++ net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) -- Chuck Lever