From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2492AC33C9E for ; Tue, 14 Jan 2020 16:25:41 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E856F24656 for ; Tue, 14 Jan 2020 16:25:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="izTvq/7K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E856F24656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C00C6860E1; Tue, 14 Jan 2020 16:25:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FTyculTpGD+v; Tue, 14 Jan 2020 16:25:36 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 040B6860DB; Tue, 14 Jan 2020 16:25:36 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E1A65C1D83; Tue, 14 Jan 2020 16:25:35 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id B2A17C077D for ; Tue, 14 Jan 2020 16:25:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9C14120523 for ; Tue, 14 Jan 2020 16:25:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nPUbJfmAAbJR for ; Tue, 14 Jan 2020 16:25:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by silver.osuosl.org (Postfix) with ESMTPS id 7847520508 for ; Tue, 14 Jan 2020 16:25:27 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id kx11so5913967pjb.4 for ; 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=LfoGgyC//+VO3Ijo/3xQswZ5Pi8M3md2YFqCb2pKokeiSSiclLReJdce//n9VuuqgB M4JmbxIbnGyky0zje1yOVwH5IsNm7V/ex0fqTAkvnBkzAQOVOAWJbeydmgafBZdBtAXD YltGgP06on40xMLsYRLolbd8sqzxNX901yGJ2z6WmR20Alkrr6Urhe9+pfjjuuiErCep BhMM6pBXplNV9BgW+AAIE7V77YQFoXJpD5VN4oI/In0cLTXev93pGTarkCbG8T4wydoy gLA+J+cTd9NJcf9yH9gz8HsSVOK0sVMTupAJOKd1b+aMTj+EZ6sdVSPYm6k60+OqpAfR SdvA== X-Gm-Message-State: APjAAAU7s8C2mmBfxP2YKJPFeMTykT78Oqzdar52eUhidCmxbRLFjwUp /+fUonsxjYzycp5dLkx4QZo= X-Google-Smtp-Source: APXvYqx9Q8mYgC/vWsODDnktfF+o7uQM2Yy9FVhF+6HjsdMb4D7DCRFfMntMB9aRDbyFKkD+F9gWdw== 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 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 Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, joel@joelfernandes.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [Linux-kernel-mentees] [PATCH 2/3] infiniband: hw: qib: qib_verbs: Use built-in RCU list checking X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" 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 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees