Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp897085ybg; Fri, 18 Oct 2019 08:58:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgeJKFdqayaTkqAJtGR/DeI87B8Ok8xPsV8ibfXfiQ1BUmjYkxX+Hg8X7zw+4U87jy2/gX X-Received: by 2002:a50:cbcd:: with SMTP id l13mr10305914edi.18.1571414327694; Fri, 18 Oct 2019 08:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571414327; cv=none; d=google.com; s=arc-20160816; b=Tyh6KgQf41kn4YrZbwWBSQ5bVPoM4DT9ahIG/v+H8DLgOnpJXNhksZif1jyPzalTLz ozXr345Zd8KpjydyG81W2q+GM6olWkGGsQFK8Yt940TYvEW9zW5jX6LzsSeet647MBUf PrYZlD3RN3ygniqXGYDw9lIwT8HVU9gHir25wnRdGfeP+vQx/8xr5J+Fnxxb6ezMkIqO eaOazpezWQASZNmsEyoYTGoiQdOYtx5ZEGSChoE8mlghPmE5aHhJRqcub2zj7NrUVgdB B705azoK+pDJ24CTMX/faF/uSq4P4bY4mUoizV+FL7VmT8E2PevvKqAOVhutOW/8SLU2 1ThQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=l9DtJA0P+HbKyHsdtq1Ea2p+bmaxcOuWEQj1qUxK2T0=; b=dJ7BTPZSVjipIv4+UMrlIv9oYXJWwCS2xxC75TfRPqxzUtfjMimsKfOqdJY3U3tkxU 2QU6gALNHzElYi0DtQLRjNrSD64MVhWmSGdR3B5jyHikhLxuZQf5ndB0/HdFpRIjALKE 3cWRTyYWRjJ6BRYHjlhG5XZj+f2ZxjnVhx/VL4pQyOXlbKNhBL6VyThHnhbYlPp0PS0l ctOYJ8dcU+WGSlttUf5XrcSvjJRYAUbA3keVuprqdD7gWPfGWmm3r9lqCYX6ge9rv/f4 kiQT4uB66t8FFK8yloC/RKg1a8oEuzg4nYjV1IZ9Fi1hAiga5mEtWCTHYkITuqNbshdU QrSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GOWQ/2M2"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si3806520edy.320.2019.10.18.08.58.19; Fri, 18 Oct 2019 08:58:47 -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=@gmail.com header.s=20161025 header.b="GOWQ/2M2"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732510AbfJQNFv (ORCPT + 99 others); Thu, 17 Oct 2019 09:05:51 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41238 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbfJQNFu (ORCPT ); Thu, 17 Oct 2019 09:05:50 -0400 Received: by mail-qk1-f193.google.com with SMTP id p10so1752242qkg.8 for ; Thu, 17 Oct 2019 06:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l9DtJA0P+HbKyHsdtq1Ea2p+bmaxcOuWEQj1qUxK2T0=; b=GOWQ/2M2nfrbE2cTQ5dMT9734EYJoawhR9Rb+r8BbPGd1J7XvDCFPgO4Zc+I5z+1yc +piFpv+YpXM0yhkrMQxOIE5LEg4yYbcVSknDY/zBolI6kT4zuUmozasU5UApA8qagCXL b2+AEGSUcezfgFvBA+bFbPry2wgS4VzN2iveNZ3Op1xoWUNLDbHED/1b6XeGn0f65hgi ZOXnai8cTDG5SuzBma9+J1LkCDdnSphy+rLR6ptOU00PZy+vfWz4TQVTvisiQrmT2ZGE 6xSq70nHGw5RDNieaDQv2vRR9nK4PX00nDHM5AhliUoqfcD4+KcTtTnSmaPpBOBqQgXz 3Q0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l9DtJA0P+HbKyHsdtq1Ea2p+bmaxcOuWEQj1qUxK2T0=; b=qoqc4tJll/zQGpQYCMS/69vKT00t7hZ2vi3b08wCNIhefLwUpDdfuwLax6niixkxdn tsSzAIKrvf+SXJIsyDDp827ANshnSgoh8Tt5KNWQd65fBaQc6IWM3sgiImXtswm1Tk6K 4tsyLG5f2bwHhUv4FHv2sy+qj16Fx5x0KPCz22CwfS8dSiOQpPgaMdlDwQm0sNDmGI2+ k7v5ZSi6lmIqKw9lTQwuu11Okjk5gItOX740RsS8SbaWQNV9wZtHe3htdBDe1cBonK5u M0xqSZQjjGbH95we5ikxr5mmxI8wNXTRBkgi6VF8qMQDhV337d6SEz6fACDXSkcPmHri dPsQ== X-Gm-Message-State: APjAAAX6MiV6Xi/Nm27tngESu35TddrEnvw44ummQ1s65g4mwc8tQ5gH zSQt6DdopnboOV/Ulk2npfX5VtM= X-Received: by 2002:a37:bbc4:: with SMTP id l187mr3237300qkf.50.1571317549321; Thu, 17 Oct 2019 06:05:49 -0700 (PDT) Received: from localhost.localdomain ([66.187.232.65]) by smtp.gmail.com with ESMTPSA id g194sm1326648qke.46.2019.10.17.06.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 06:05:48 -0700 (PDT) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: linux-nfs@vger.kernel.org Cc: Neil Brown , Chuck Lever , Anna Schumaker , "J. Bruce Fields" Subject: [PATCH v2 0/3] Backchannel fixes Date: Thu, 17 Oct 2019 09:02:18 -0400 Message-Id: <20191017130221.7924-1-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org A set of patches to ensure the backchannel lifetime cannot exceed the lifetime of the transport to which it is attached. v2: - Fix the case where !defined(CONFIG_SUNRPC_BACKCHANNEL) - Don't allow xprt->bc_alloc_max to underflow in xprt_destroy_bc() Trond Myklebust (3): SUNRPC: The TCP back channel mustn't disappear while requests are outstanding SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding SUNRPC: Destroy the back channel when we destroy the host transport include/linux/sunrpc/bc_xprt.h | 5 +++++ net/sunrpc/backchannel_rqst.c | 7 ++++--- net/sunrpc/xprt.c | 5 +++++ net/sunrpc/xprtrdma/backchannel.c | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) -- 2.21.0