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=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 2A9DAC4743C for ; Mon, 21 Jun 2021 10:07:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8AA660FDA for ; Mon, 21 Jun 2021 10:07:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbhFUKJh (ORCPT ); Mon, 21 Jun 2021 06:09:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:57360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhFUKJh (ORCPT ); Mon, 21 Jun 2021 06:09:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C23A3611BD; Mon, 21 Jun 2021 10:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624270043; bh=STOdkfkXiJl4gz/GqCyugZd8VSEX0TH3rFOhbFvvry4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZkF1v+8wQAbj01cthcDv7qNyQHO371M5FJBODWkviDJH9sjmojhLe/yPE1SUI4wQC JKoeBhDlgybShTIs8JxXfbAxFmjiIRToZy2EKM0FPhfG9sFQKKn/rgrBVp5e2YlAAl 5t4NLyv86+YNzVJJsWRDm6yjxHh3r8TrO6MPDZ/nwxG07Qq9xN2mJmxJeZcPlI4Dfa VSiDcJuX5ZFLa9oQwaquFCbNMQGJ74XZt4LcjiOyudHs/kCjVok7KW0p0zBYzaqGgg s5xcITYvYMMrpmVr96eMuHIomQWGIaet/OmiP3cWyooZiiBWXnBKq6UZPSJ6LbsW4E s+aCplLm7pk7w== Date: Mon, 21 Jun 2021 13:07:20 +0300 From: Leon Romanovsky To: =?iso-8859-1?Q?H=E5kon?= Bugge Cc: Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org Subject: Re: [PATCH for-next] RDMA/cma: Remove unnecessary INIT->INIT transition Message-ID: References: <1623944783-9093-1-git-send-email-haakon.bugge@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1623944783-9093-1-git-send-email-haakon.bugge@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Thu, Jun 17, 2021 at 05:46:23PM +0200, Håkon Bugge wrote: > In rdma_create_qp(), a connected QP will be transitioned to the INIT > state. > > Afterwards, the QP will be transitioned to the RTR state by the > cma_modify_qp_rtr() function. But this function starts by performing > an ib_modify_qp() to the INIT state again, before another > ib_modify_qp() is performed to transition the QP to the RTR state. > > Hence, there is no need to transition the QP to the INIT state in > rdma_create_qp(). > > Signed-off-by: Håkon Bugge > --- > drivers/infiniband/core/cma.c | 15 --------------- > 1 file changed, 15 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky