Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3117227ybl; Mon, 19 Aug 2019 12:30:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsw0eITbHDo6IS1tT4yBlnP9QLyJPANv/FCXGdK+0Lk5/nwBbOD/6ixECjQhAl/NfIdvdD X-Received: by 2002:a17:902:b591:: with SMTP id a17mr24873167pls.189.1566243002119; Mon, 19 Aug 2019 12:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566243002; cv=none; d=google.com; s=arc-20160816; b=Q/Wd2zvB8LJUdC4nr9MTqA4w7KLsI+NXhCISolafBeZl5lEzL7zwlAJDEASTgygi7u qIZ2FIg540V6Huo8MI1ySaLxivbE1yquyrN0ESuWXct+LynZLgIuyIw2Thfh86M4FzdU zYpXLxTUUf9odnmMLzAMoV451JYzstILgH7M7wLH37c6RiLIEwn7xijWhdWZERTO9Myy IoCvWX22rY7QQyRK1q0FAHIMAAKeR9geQ2rThpsajn3iMi+Yj4RuroiWU2Tfp4cHMDJC mKDMjJ13brhoD3BpLSNOsOZooUrWTQeTvLvOpOQuKQXO1g0lg38vJ42iwOKHRHyKrYa3 YX9w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=23wLHJSmn/ZxNKzqVt7PQBC+yvBjUAUPtEmuEjnDvDQ=; b=Wp7e5hA4vQeetckioLopaRbsnu+80g696P4g4TyIswXjOdBmmTBhtn3/LORpcAW/FZ s3k0b7S7ElvTPkUBIEHGJKGLppjQ98tEqdFpJhHBHsoT6f2+4QN8FoKaCpRCsqw9dQac n2geFDlEoaHTfIkprw603IbSMED4qRqc24FpBkm+2daqea2Zz+A4U6mgxxOdMZO6tpzV 16aGvFfcFNhHwfaRvKuxkGYldHYXw6UkPeJuxDAXktfAT3TUWyoJyRRphg2V1F+5Q8lj nuxWyGPkzdE9UOyoLGymW25MTs08WbbSd8j362Knr3Kop23SSlhkd7apGbOYfkaz6fS3 ya9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VJPQy38R; 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=fail (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 r11si10183319pgp.390.2019.08.19.12.29.29; Mon, 19 Aug 2019 12:30:02 -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=fail header.i=@gmail.com header.s=20161025 header.b=VJPQy38R; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728447AbfHST3F (ORCPT + 99 others); Mon, 19 Aug 2019 15:29:05 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:33996 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728415AbfHST3F (ORCPT ); Mon, 19 Aug 2019 15:29:05 -0400 Received: by mail-io1-f66.google.com with SMTP id s21so6869978ioa.1 for ; Mon, 19 Aug 2019 12:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=23wLHJSmn/ZxNKzqVt7PQBC+yvBjUAUPtEmuEjnDvDQ=; b=VJPQy38RQnAW/fXuBxHxMgp7i1Jc4K9BNYwFwTr3JZiIwwJyRAevzRwlhvHThdBQat nZ0fY9qALusCfn3GsRKiaYgR+5wtn3cGVmmxslDRSaqPSe7O8P2Yd88R4ULm9DJyhmEQ z7+nckN2YEO75fBn+43n9UxV5k8DeG9lf/oblrWh/AsAxpBjBBQRtvGZuyTV3EjAOe/F +HsjEnzWAUDa4FBe/Va6DTDjN4g22wR/IyAiST6nsQNBN+Rqm61opv/OIPsR4Jxys4kz zd0qulp1O8Ee7Zj7/fcIvhfdJLPeqDsI88LSwtk+ajQp1QPnZDXGNNYz7eFtV+do63hT skgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=23wLHJSmn/ZxNKzqVt7PQBC+yvBjUAUPtEmuEjnDvDQ=; b=D/wMSiR3MzLxjqF+sUOPxuFh/mgSQf7INAmYpU6NLoxDnhh1MPvxyAtWR0dZJyRiBS EeiI5I95iB3baErQP3TO9XcmHa5LiV5xWk8vR+74LaLqah/CcsmdFebbVnvwLrmqgTHX 5PKDGHh4OpglNJDQcylxCmduGn7P2F3FcKiasFwVn0qVt5GFSkRoEKIKaccpebZePfac bZb+8+3depaltEn8DaUSu9NJP1tiCPLAITpgxUu2FQbBEf0YYyp/qU4gkc5dGsQwMfd9 uL1A0aIJ4esO1YsKlAHq2p4x9JvuDaJr6kZsk/JgiZ4ZAS5Tbqa19LgPrAbfKH/R/GDq Hkdw== X-Gm-Message-State: APjAAAWsk48GmBsWRCyNsgow14jt55L3/wPPqFgCLzlcexdj7WOc3gR0 abrDeROHrPdl+UGwMarg+lU= X-Received: by 2002:a6b:f910:: with SMTP id j16mr8093272iog.135.1566242944212; Mon, 19 Aug 2019 12:29:04 -0700 (PDT) Received: from gouda.nowheycreamery.com (d28-23-121-75.dim.wideopenwest.com. [23.28.75.121]) by smtp.gmail.com with ESMTPSA id v23sm16243957ioh.58.2019.08.19.12.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 12:29:03 -0700 (PDT) From: schumaker.anna@gmail.com X-Google-Original-From: Anna.Schumaker@Netapp.com To: Trond.Myklebust@hammerspace.com, linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [PATCH 2/6] NFS: Have nfs4_proc_setclientid() call nfs4_call_sync_custom() Date: Mon, 19 Aug 2019 15:28:56 -0400 Message-Id: <20190819192900.19312-3-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190819192900.19312-1-Anna.Schumaker@Netapp.com> References: <20190819192900.19312-1-Anna.Schumaker@Netapp.com> 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 From: Anna Schumaker Rather than running the task manually Signed-off-by: Anna Schumaker --- fs/nfs/nfs4proc.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e5b6499c0b8b..234312240f33 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -6023,7 +6023,6 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, .rpc_resp = res, .rpc_cred = cred, }; - struct rpc_task *task; struct rpc_task_setup task_setup_data = { .rpc_client = clp->cl_rpcclient, .rpc_message = &msg, @@ -6056,17 +6055,12 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, dprintk("NFS call setclientid auth=%s, '%s'\n", clp->cl_rpcclient->cl_auth->au_ops->au_name, clp->cl_owner_id); - task = rpc_run_task(&task_setup_data); - if (IS_ERR(task)) { - status = PTR_ERR(task); - goto out; - } - status = task->tk_status; + + status = nfs4_call_sync_custom(&task_setup_data); if (setclientid.sc_cred) { clp->cl_acceptor = rpcauth_stringify_acceptor(setclientid.sc_cred); put_rpccred(setclientid.sc_cred); } - rpc_put_task(task); out: trace_nfs4_setclientid(clp, status); dprintk("NFS reply setclientid: %d\n", status); -- 2.22.1