Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1402585rda; Mon, 23 Oct 2023 11:23:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqsSY/ubeJANV1uFSY4ffwkkFAyvQ+L826DK2o2nbKpgIsU1dl6lMY8lXBASReuxuSLqro X-Received: by 2002:a05:6a21:a59d:b0:153:4ea6:d12e with SMTP id gd29-20020a056a21a59d00b001534ea6d12emr509460pzc.17.1698085427084; Mon, 23 Oct 2023 11:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698085427; cv=none; d=google.com; s=arc-20160816; b=h/KZ7+wkgA4j7HDmNrUbfxVhKWqxni+H0PsKRByVV/C1g2ziVgWBOdqiX4m3QxDjpl kPBPvxIV+6gZ3lMIYPCboVpSa82hkMAmLH8ozNra3Tkqrk1UlO+TjIfXqum1yO8cCjtm /c7jnGxMyqedoolnOnoe0fxXjgbGb93QegWzwD/bz0cdxOavoMstOkERDPPYpb32l+IQ uY1sDE8sc8o4BpFstUZBUtSjO4ZwtpBkJrJ//3bGPaDOpIwEKvJjyxN1YlwTriiUpSIh iZcvJ6Qb19zgUqHE+hj3DhlQXwQOsfvynhDJlkxgkCW3xcXYuKzgk4iOgHxw8aiZAbMr 4/gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=asV/mzEgZ0QPpPGTkL/tZKxIZbV4pZf1YGZ30QE3Rpg=; fh=4d7RV6yHhLkjRZFZeG8so2oMGBAP4qVKQEnNNC8aiDo=; b=JgijIYrqXTaE2dBSVOYtA0CJkq2c5TEawZcjgUil+FqQxruCols7BYc9hdTzCry++M MuE9I946+ewRq/7ZmXVe4uBxSk2mcWIsQhyqhyOQbscAL2+EMZOxMnRKE41WXPdk0Qz0 hmMIUy4mKVlbRljan4UCFuIl7o42Bx43fSCqtrTYUsWmauEuuYTbMYUX/6QILkbmZ18P j2Iqhoun8ayit3q1Ckc3xXIkevBNPGjmPiH4F/sfjvgI1VeyEO966fvlYAlqGtOw7B4U yTFfd0ggePmt4Mfma0QiOeTqFG4wZmexmLqO7xING7HkjDJvYNdkkGDXmtBicIyPNWaD QcoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=AUeGajGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u64-20020a627943000000b00690204af234si6722587pfc.378.2023.10.23.11.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=AUeGajGc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2C4D1809C93A; Mon, 23 Oct 2023 11:23:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjJWSXh (ORCPT + 99 others); Mon, 23 Oct 2023 14:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbjJWSXg (ORCPT ); Mon, 23 Oct 2023 14:23:36 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA5089B for ; Mon, 23 Oct 2023 11:23:34 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3b2e308a751so1869263b6e.0 for ; Mon, 23 Oct 2023 11:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1698085414; x=1698690214; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=asV/mzEgZ0QPpPGTkL/tZKxIZbV4pZf1YGZ30QE3Rpg=; b=AUeGajGcM9qqd0H0+u84YQUazg5mZQSwadjvuIsUeKb8yUmWQn/xmc7Whjnxg7YNDv OLaZ6TPBJNlFrf/0GYxZwWVgO5T0PpAe511cRJx3fatgj7qQmk3EUia+c095gQ45z2em vMDGCKr1HdcDOhO1/MNr7TgnyAgQmcx5lk++9UpUsv9WTU7lFHuAmMSELdOYH1mKuUmK 8+2hMZya9TPOSjx9FQ7j40yEA05AQH3+EpDf7o/diKFgBqLGXvtWKfiZmZbrZQm1VfEd 9Ll36m7GRWwyEoxMMZ6JX++nr0sr5ajAzK/UHI+YFe0obsrym+SMlDg3gXTNDN8pHi2h NQ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698085414; x=1698690214; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=asV/mzEgZ0QPpPGTkL/tZKxIZbV4pZf1YGZ30QE3Rpg=; b=Gj8n0Qi5O0EC4D32M56UpmoCm/ll3D1fs9i7HkXT1Rfm8/mHPhyoLHVtXle52ITQX5 DecmsIrHTbDxmAIwnZIok66KWCoFb0WoUXNpAFW/383aS2+u0CUZ6zPOsrE0tTkCDwhs iAFAFf6jWtiYAWI+rorvsMWvclZhrVywO7o+w1dq82ZW97GOV5v88ilGZ69A1xtyxR8r loI3aWLdnUdGMkmIPuPQ3uLlQDfpCUfSY9xLhP2PvyZCJWc9r33cYCH+ZuwcztwCd+yC YUDb4klXws724bke4OiVOHkJY9Djg1mM0HHBcV2olynbKm6Pwc1FM6+beXOhfGD953Bs yRJw== X-Gm-Message-State: AOJu0YwB6TnAnzgcteJ13KKV0fmslNvBvZ5QGStez9rXH/MAuG9imMyf RAVcajI+UEinnJR0veusHbGIwQ== X-Received: by 2002:a05:6808:1a24:b0:3b0:f8bd:9503 with SMTP id bk36-20020a0568081a2400b003b0f8bd9503mr8622436oib.10.1698085414027; Mon, 23 Oct 2023 11:23:34 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id j9-20020a544809000000b003b2e4b72a75sm1582234oij.52.2023.10.23.11.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:23:33 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1quzaO-003jRh-QZ; Mon, 23 Oct 2023 15:23:32 -0300 Date: Mon, 23 Oct 2023 15:23:32 -0300 From: Jason Gunthorpe To: sharmaajay@linuxonhyperv.com Cc: Long Li , Leon Romanovsky , Dexuan Cui , Wei Liu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ajay Sharma Subject: Re: [Patch v7 5/5] RDMA/mana_ib: Send event to qp Message-ID: <20231023182332.GL691768@ziepe.ca> References: <1697494322-26814-1-git-send-email-sharmaajay@linuxonhyperv.com> <1697494322-26814-6-git-send-email-sharmaajay@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1697494322-26814-6-git-send-email-sharmaajay@linuxonhyperv.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 11:23:44 -0700 (PDT) On Mon, Oct 16, 2023 at 03:12:02PM -0700, sharmaajay@linuxonhyperv.com wrote: > diff --git a/drivers/infiniband/hw/mana/qp.c b/drivers/infiniband/hw/mana/qp.c > index ef3275ac92a0..19fae28985c3 100644 > --- a/drivers/infiniband/hw/mana/qp.c > +++ b/drivers/infiniband/hw/mana/qp.c > @@ -210,6 +210,8 @@ static int mana_ib_create_qp_rss(struct ib_qp *ibqp, struct ib_pd *pd, > wq->id = wq_spec.queue_index; > cq->id = cq_spec.queue_index; > > + xa_store(&mib_dev->rq_to_qp_lookup_table, wq->id, qp, GFP_KERNEL); > + A store with no erase? A load with no locking? This can't be right Jason