Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5408006ybl; Tue, 14 Jan 2020 08:26:38 -0800 (PST) X-Google-Smtp-Source: APXvYqz5iAY9SjXePavIMcNzPYD/DaLLpBdxJQbrsOkTX874QuJuoMdPw8hPk456DbMEhlmwpiV9 X-Received: by 2002:aca:ea43:: with SMTP id i64mr17706067oih.30.1579019198225; Tue, 14 Jan 2020 08:26:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579019198; cv=none; d=google.com; s=arc-20160816; b=YzdSs6M+IGH9pCxj77UMvR9vAq57xlSvGD4JC283OcUsTNGp4DMLTYWH6WrHQsPtYR ugdlAxIQ74RppLF+dmUkX5qitwOgc6Fd9wgs6rwJhsODvek5VIPoobybPlvOqYkbRtiN sfvqKZklw5dMNJWilX5JHe9N3kZyZdPRj1rYDwHVTqKcOy4b0SXcETacWcPHybKrsRIw RDbg4bHV5sRvHdzC3BoeWEpsr1LwxaSA7hIrvGvB7+451Srm5n53DkxaZl0x2xPvHs+4 QGIQabgivYea9mTT7z+0VmDMNN1U64o0bGUz1dCg7U7W2Q4dZICFg6XlhNQEmptkY53n QH3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=GPzrzY9F39Rp14jkQHqPK+Xq5V2Z3YersgLJxHHp4yg=; b=R9Kq4+equNGUzc0Bel8xklvg0E9DohPAXqglsNuSOPj9SLJQYpEo6+wDmoBdqG8uVU mp2iy3QF8g4HowzTJs5T+epdwmMcYfZus0wcFsj21VOGtkiAeUT5+4vs/3kShOATsCQN dYxGk6wnTfeJRsIXxrK1acjZRyy6cEexDncdIKGqdbkWEIGj7ZqoVB7x9Y11qbPMpcs2 1jaWNH94KaS+FMNavOeb5mYLEBFhUcIYv8MybMdfwqxfzXpNeDk1WJVIITFlsFIS6D4m oK29UF0VyXfrFwFY5rZiqCg5GnFKeDYbptIqvmoM3Rd2OtoUPdzymL1db6GYawEbB58m Wazg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="izTvq/7K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 d5si6379766otp.174.2020.01.14.08.26.27; Tue, 14 Jan 2020 08:26:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="izTvq/7K"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728689AbgANQZ2 (ORCPT + 99 others); Tue, 14 Jan 2020 11:25:28 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:50301 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgANQZ2 (ORCPT ); Tue, 14 Jan 2020 11:25:28 -0500 Received: by mail-pj1-f68.google.com with SMTP id r67so5915714pjb.0; Tue, 14 Jan 2020 08:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GPzrzY9F39Rp14jkQHqPK+Xq5V2Z3YersgLJxHHp4yg=; b=izTvq/7KiP2J2spCG7hAbuJSGJDDDjc4ReYE2M+qUMQ+pTxOEGpx7dJXtPxmsjB4jL 0G+fzXhrLEVlfmOBVbMqpJ9oi7lVD5hpN0DpzMttJ4PEpXukzsPyJn2S1W7ytkptHlgc gav4InYivRXe4F8mY9sPsXclSGLh0pJEm97ZYvAgNjEkJWXTCe/HLeJUOE99xYoggcIz 3ud/HTBl3xsd009nZDrRcsgBsnB6DDTTQPCQF45Vj90+wUqBGKngEG/KLaa0E/fmpBzj Wif8vqov0bk3vfv1M413NSs1xb2XPAncuWKfYdAzxXOoyNWHUeEhYrmRoDNL7oQxHmTp Wccg== 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; bh=GPzrzY9F39Rp14jkQHqPK+Xq5V2Z3YersgLJxHHp4yg=; b=Wi3El/xUGtOAJZuOnWPu1kIi+jt4OXyUP2RUKFidpgRfiYV7YoPaGBFoJu0C2IMl5p qXMUNAldDz1AG9g+MiFcOj9xJPGTR3CBs2OUREmcXIGp+/zOlIyk2wtoBYF97psuVTH3 khNPgbS4NTolvbnsrt9GzmDxzVD0ajRKr8ZyckTJF34/5Ac+GmrYRB+cyHfB6WyvFrrW V4b3n+lJ/Z+nE3fjufoSPKNLcMnOuVzFFxPONnIOXR8Fhi2BnI8QGhdv8AVe+MiYufBd EL/I/HQ6tRJW8fYjk6LR7a3xdlZl1Tzqi9Awnp+YWCYdSy0NcABINpirZ24ZNe4OFynU GWPw== X-Gm-Message-State: APjAAAUNXW2u39k0wae4r2b8iMhnkmar37s5bRU5TtCe/SOnWqY7kzfZ zJhHKTwJEpk10puVr+z5shE= X-Received: by 2002:a17:902:8541:: with SMTP id d1mr21271321plo.57.1579019126949; Tue, 14 Jan 2020 08:25:26 -0800 (PST) Received: from madhuparna-HP-Notebook.nitk.ac.in ([2402:3a80:1ee7:f789:438:77e9:83ea:bb95]) by smtp.gmail.com with ESMTPSA id v10sm17975379pgk.24.2020.01.14.08.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 08:25:26 -0800 (PST) From: madhuparnabhowmik04@gmail.com To: mike.marciniszyn@intel.com, dennis.dalessandro@intel.com, jgg@ziepe.ca, paulmck@kernel.org Cc: joel@joelfernandes.org, frextrite@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, rcu@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Madhuparna Bhowmik Subject: [PATCH 2/3] infiniband: hw: qib: qib_verbs: Use built-in RCU list checking Date: Tue, 14 Jan 2020 21:55:11 +0530 Message-Id: <20200114162511.20335-1-madhuparnabhowmik04@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Madhuparna Bhowmik Use built-in RCU and lock checking for list_for_each_entry_rcu by passing cond argument to it. Signed-off-by: Madhuparna Bhowmik --- drivers/infiniband/hw/qib/qib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qib/qib_verbs.c b/drivers/infiniband/hw/qib/qib_verbs.c index 33778d451b82..df93fdc8a2fd 100644 --- a/drivers/infiniband/hw/qib/qib_verbs.c +++ b/drivers/infiniband/hw/qib/qib_verbs.c @@ -329,7 +329,7 @@ void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen) if (mcast == NULL) goto drop; this_cpu_inc(ibp->pmastats->n_multicast_rcv); - list_for_each_entry_rcu(p, &mcast->qp_list, list) + list_for_each_entry_rcu(p, &mcast->qp_list, list, lockdep_is_held(&(ibp->rvp.lock))) qib_qp_rcv(rcd, hdr, 1, data, tlen, p->qp); /* * Notify rvt_multicast_detach() if it is waiting for us -- 2.17.1