Return-Path: Received: from mail-yk0-f175.google.com ([209.85.160.175]:34619 "EHLO mail-yk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756310AbbIUI6p (ORCPT ); Mon, 21 Sep 2015 04:58:45 -0400 Received: by ykdg206 with SMTP id g206so96343977ykd.1 for ; Mon, 21 Sep 2015 01:58:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150917204418.19671.49594.stgit@manet.1015granger.net> References: <20150917202829.19671.90044.stgit@manet.1015granger.net> <20150917204418.19671.49594.stgit@manet.1015granger.net> From: Devesh Sharma Date: Mon, 21 Sep 2015 14:28:05 +0530 Message-ID: Subject: Re: [PATCH v1 01/18] xprtrdma: Enable swap-on-NFS/RDMA To: Chuck Lever Cc: linux-rdma@vger.kernel.org, Linux NFS Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: Looks Good. On Fri, Sep 18, 2015 at 2:14 AM, Chuck Lever wrote: > 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(-) > > 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 > > -- > 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