Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp747138pxk; Fri, 11 Sep 2020 21:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymrLyvPDsONkCbl8TA+AmjjAOkT6M29kJ0CzLrBwABgOjC6QYb1n7s+0F7khrDEk4u4CE8 X-Received: by 2002:aa7:dd8d:: with SMTP id g13mr6483201edv.324.1599886202204; Fri, 11 Sep 2020 21:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599886202; cv=none; d=google.com; s=arc-20160816; b=lslQiKAt8vIC4o1fbbeh+iLA2PmW7CO+Q4fni2XvwQdzes/UIvyOImmEB1PRBnRn3E YLZUWSzA9Urn8msJlqaKatSHK2AoER2hS+b0oTb0RvQ+/gXYMtQpBSGX01pzdGmdl1F5 FVqfBadhULSuQWkbJFMVwZ1LU4pUp3+9w0AapfgSq+q+KP4WyO3l9fZBrhhcsrgUyR0c cE4yP9jXe/fBJ0YSmMw8Hbjn0B7e0pDWfeNPk5CPQUfxC2kh+9AlkuJ5KN4Y7gJMp7Bl IvN7TDCCnwoa8+ZquWFb8q0rM2aG5LgyzPz1ewesRGQL8iGXgX3NinHiV4ZkpXg1TMLA dXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=RcjRpDjrmSGoRJjM8o6GsZSZ+Sh5D+O0hyvZu9UTKXM=; b=SrT01t14mxf4wRF7nazx1S4vmXnHiPdNl/kvCfgtkSUgiE9E83TVLaZc041jUysGbw PecQpKEkPZeUYUeAluPPK24xAAJOG7vwZk/z4ZXQvIXif0plk77kcu0O4kD8sb5w7s9K tWsDjUJiE6Yv7qz5CsopypfL4y48yocL0LpUnBglmSON9C8dl1SR3yNGIHboSzUBZWw8 rUssiIacftmWrV6I66HwVI7Iu1GbV0vixsWHx2mVmmCMoYAx+VPqHqkFZiIOZYWoEmPK Si6zhQ+ZjQeCW/gQ2cTrsroKbqTlMBETH2SpFY+IUBp7xaAKXqWzNwJbawleZQthYPOR J7oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YqyUwn1J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si2889376edo.12.2020.09.11.21.49.39; Fri, 11 Sep 2020 21:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YqyUwn1J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725833AbgILEq5 (ORCPT + 99 others); Sat, 12 Sep 2020 00:46:57 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:55392 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725812AbgILEqw (ORCPT ); Sat, 12 Sep 2020 00:46:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599886008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RcjRpDjrmSGoRJjM8o6GsZSZ+Sh5D+O0hyvZu9UTKXM=; b=YqyUwn1JxP+gK6XYlckG0rX7KdOtL3RcSfRyuPA+Jswe8APrbGzv0eWmdhv4iu+ow6PkVK wwOAxAcGAKkRPX4gtfsosgEc3WlolPH/Qad4tuYoU/+s6q5AhmkopM/k6n6ngSjFEmcyto 2xLbRpqPhxlVgxYFRaGkj30m20/CiEM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-33-nKRcDuUkOnu5nyOXPZlhJQ-1; Sat, 12 Sep 2020 00:46:44 -0400 X-MC-Unique: nKRcDuUkOnu5nyOXPZlhJQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2BC76801AC5; Sat, 12 Sep 2020 04:46:42 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-58.pek2.redhat.com [10.72.12.58]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A1FD35C22B; Sat, 12 Sep 2020 04:46:36 +0000 (UTC) Subject: Re: [IB/srpt] c804af2c1d: last_state.test.blktests.exit_code.143 To: Bart Van Assche , Jason Gunthorpe Cc: Sagi Grimberg , Yamin Friedman , kernel test robot , Max Gurtovoy , LKML , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, lkp@lists.01.org References: <20200802060925.GW23458@shao2-debian> <0c42aeb4-23a5-b9d5-bc17-ef58a04db8e8@grimberg.me> <128192ad-05ff-fa8e-14fc-479a115311e0@acm.org> <20200824133019.GH1152540@nvidia.com> <2a2ff3a5-f58e-8246-fd09-87029b562347@acm.org> <20200908182232.GP9166@nvidia.com> <6c86453d-d7ae-a36b-d827-7812999abc96@acm.org> From: Yi Zhang Message-ID: Date: Sat, 12 Sep 2020 12:46:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <6c86453d-d7ae-a36b-d827-7812999abc96@acm.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tested-by: Yi Zhang This patch fixed the issue I filed[1] which use rdma_rxe for nvme-rdma testing. [1] http://lists.infradead.org/pipermail/linux-nvme/2020-August/018988.html Thanks Yi On 9/12/20 6:00 AM, Bart Van Assche wrote: > On 2020-09-08 19:01, Bart Van Assche wrote: >> The above patch didn't compile, but the patch below does and makes the hang >> disappear. So feel free to add the following to the patch below: >> >> Tested-by: Bart Van Assche >> >> diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c >> index c36b4d2b61e0..23ee65a9185f 100644 >> --- a/drivers/infiniband/core/device.c >> +++ b/drivers/infiniband/core/device.c >> @@ -1285,6 +1285,8 @@ static void disable_device(struct ib_device *device) >> remove_client_context(device, cid); >> } >> >> + ib_cq_pool_destroy(device); >> + >> /* Pairs with refcount_set in enable_device */ >> ib_device_put(device); >> wait_for_completion(&device->unreg_completion); >> @@ -1328,6 +1330,8 @@ static int enable_device_and_get(struct ib_device *device) >> goto out; >> } >> >> + ib_cq_pool_init(device); >> + >> down_read(&clients_rwsem); >> xa_for_each_marked (&clients, index, client, CLIENT_REGISTERED) { >> ret = add_client_context(device, client); >> @@ -1400,7 +1404,6 @@ int ib_register_device(struct ib_device *device, const char *name) >> goto dev_cleanup; >> } >> >> - ib_cq_pool_init(device); >> ret = enable_device_and_get(device); >> dev_set_uevent_suppress(&device->dev, false); >> /* Mark for userspace that device is ready */ >> @@ -1455,7 +1458,6 @@ static void __ib_unregister_device(struct ib_device *ib_dev) >> goto out; >> >> disable_device(ib_dev); >> - ib_cq_pool_destroy(ib_dev); >> >> /* Expedite removing unregistered pointers from the hash table */ >> free_netdevs(ib_dev); > Hi Jason, > > Please let me know how you want to proceed with this patch. > > Thanks, > > Bart. >