From patchwork Thu Sep 17 20:44:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever III X-Patchwork-Id: 7210131 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B4ACBEEC1 for ; Thu, 17 Sep 2015 20:44:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADC4E2077D for ; Thu, 17 Sep 2015 20:44:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C22682077A for ; Thu, 17 Sep 2015 20:44:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbbIQUoV (ORCPT ); Thu, 17 Sep 2015 16:44:21 -0400 Received: from mail-qg0-f50.google.com ([209.85.192.50]:35359 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbbIQUoV (ORCPT ); Thu, 17 Sep 2015 16:44:21 -0400 Received: by qgt47 with SMTP id 47so23400027qgt.2; Thu, 17 Sep 2015 13:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=ObJ/S+FKmIItFzZ7gczLOtc3WvTwCvBNqMpVOUCNuhw=; b=jN9IoW2ICxjvxc5gp+G290+KjMtciVEu1AAppSJbChyspPX2LC45GjjXi3t2Gl/ZHo 5YbDmjR/iP9iVVaXr6h/uUn4SqrxLyNyXwWpRLZ7RVzfjDLy7cUNCYXZYACVtcWfUiKP 3dnCE3EKHgtdgwVPEmZ9V09/YLX9hqKVScCXWb0uTI5DtK+3pgnHJLdRbmusxsJsZVwN rNW/vJw9tVMtNMzQh69OPf60DNXjUXfvkkIKRfj7lewvbLZ/BNow+YtFESald/vfO9AF vBz7ylC6A3WwcnhAEp6pAac8iNKj+QPbrjM8yJfbYjh1cpRmgZ6IazKk3mdMPr3XOELK G0TQ== X-Received: by 10.140.83.202 with SMTP id j68mr2219870qgd.46.1442522660413; Thu, 17 Sep 2015 13:44:20 -0700 (PDT) Received: from manet.1015granger.net ([2604:8800:100:81fc:82ee:73ff:fe43:d64f]) by smtp.gmail.com with ESMTPSA id q21sm2041728qki.35.2015.09.17.13.44.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 13:44:19 -0700 (PDT) Subject: [PATCH v1 01/18] xprtrdma: Enable swap-on-NFS/RDMA From: Chuck Lever To: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org Date: Thu, 17 Sep 2015 16:44:19 -0400 Message-ID: <20150917204418.19671.49594.stgit@manet.1015granger.net> In-Reply-To: <20150917202829.19671.90044.stgit@manet.1015granger.net> References: <20150917202829.19671.90044.stgit@manet.1015granger.net> User-Agent: StGit/0.17.1-3-g7d0f MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After adding a swapfile on an NFS/RDMA mount and removing the normal swap partition, I was able to push the NFS client well into swap without any issue. I forgot to swapoff the NFS file before rebooting. This pinned the NFS mount and the IB core and provider, causing shutdown to hang. I think this is expected and safe behavior. Probably shutdown scripts should "swapoff -a" before unmounting any filesystems. Signed-off-by: Chuck Lever --- net/sunrpc/xprtrdma/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 41e452b..e9e5ed7 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c @@ -676,7 +676,7 @@ static void xprt_rdma_print_stats(struct rpc_xprt *xprt, struct seq_file *seq) static int xprt_rdma_enable_swap(struct rpc_xprt *xprt) { - return -EINVAL; + return 0; } static void