From patchwork Fri Oct 16 13:26:04 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: 7415321 Return-Path: X-Original-To: patchwork-linux-nfs@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 14E23BF90C for ; Fri, 16 Oct 2015 13:26:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4483E2055C for ; Fri, 16 Oct 2015 13:26:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 68872205BB for ; Fri, 16 Oct 2015 13:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754267AbbJPN0I (ORCPT ); Fri, 16 Oct 2015 09:26:08 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:33114 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754259AbbJPN0G (ORCPT ); Fri, 16 Oct 2015 09:26:06 -0400 Received: by qgeo38 with SMTP id o38so55147208qge.0; Fri, 16 Oct 2015 06:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=Bk0CjVsqxQCeR4E3yQSGCYHA0Z7b4bCcq9rCBRmgTKQ=; b=bytquPlo9VMA3eByGuKhJCTj0r+wntNxpP6WLw4nC1B5EPFDlrwf8edr5AH8ZTE5qZ fcVyoX0itKidjgab1+91tTdy7ayapy2AjUZuw90ayAUEdtCJVXf17yvh86GagRwC+ADB 6Uf9+DtdEYV0OPX3vxqj/1JSdYXzwBTykZ+tB3qk9p8O34OaENhBwNNX/W5mG6+/UNYw GSpnJizMcSwUw9IfItwabTCE/DyctO2vAYXEkUH5Air3g1QcYlyM4Fvnwi5KDWeLs1Od CUBWrwZ4PRoP9O5SeundQBn2y9baflW9vSYCOtLNkUUlGau2UJrJvyjj+AINiYcujH47 gcUg== X-Received: by 10.140.194.148 with SMTP id p142mr20305880qha.84.1445001965839; Fri, 16 Oct 2015 06:26:05 -0700 (PDT) Received: from oracle-122.nfsv4bat.org (nat-pool-rdu-u.redhat.com. [66.187.233.203]) by smtp.gmail.com with ESMTPSA id d81sm6337987qkj.40.2015.10.16.06.26.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 06:26:05 -0700 (PDT) Subject: [PATCH v3 15/16] SUNRPC: Remove the TCP-only restriction in bc_svc_process() From: Chuck Lever To: anna.schumaker@netapp.com Cc: linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org Date: Fri, 16 Oct 2015 09:26:04 -0400 Message-ID: <20151016132604.6819.92088.stgit@oracle-122.nfsv4bat.org> In-Reply-To: <20151016131958.6819.98407.stgit@oracle-122.nfsv4bat.org> References: <20151016131958.6819.98407.stgit@oracle-122.nfsv4bat.org> User-Agent: StGit/0.17.1-3-g7d0f MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@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=unavailable 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 Allow the use of other transport classes when handling a backward direction RPC call. Signed-off-by: Chuck Lever Reviewed-by: Sagi Grimberg Tested-By: Devesh Sharma --- net/sunrpc/svc.c | 5 ----- 1 file changed, 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" 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/svc.c b/net/sunrpc/svc.c index a8f579d..bc5b7b5 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1367,11 +1367,6 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, /* reset result send buffer "put" position */ resv->iov_len = 0; - if (rqstp->rq_prot != IPPROTO_TCP) { - printk(KERN_ERR "No support for Non-TCP transports!\n"); - BUG(); - } - /* * Skip the next two words because they've already been * processed in the transport