Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2373225pxk; Mon, 14 Sep 2020 11:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLu/M/cWkgBQtfc3LcjMoIezkmo6aRKrhzfmWxbf2avT5y6TKB7ktISt2hvYyTdwPd9C3U X-Received: by 2002:aa7:c61a:: with SMTP id h26mr18282953edq.254.1600108279488; Mon, 14 Sep 2020 11:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600108279; cv=none; d=google.com; s=arc-20160816; b=dOqyDR2uMyPvRYOtNiHw738j5rXKDvSdtUK4PjwePHBfJJvBTO4ZtTR9YNxzJs8T7O BPoogcLszLIIX0RUpHGkMIG3/yJdx+tzcslJNEtxFqDNi7EQedTPDrC8KfU8gquY9PsQ YL+wI0K06BDLeIHx4ibREZWgVFA98Ar08vVg4g0BhXUVc0XWtaJr1u2ddxdBuCbll01A 8EDgiNQDAT1ds0dVds18mPxGbToCTAPdF7SEKZONpye0XfNJP5J09LwS8eOJWT5EVpjX GefPtP4XCGSGQ9wDMGlXhygPOIxNti4obapqRk4coqaSoODkO0wmuI7PTN2/7t5IlRQg m7VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HCftYW5pkNNqFQk9r9loDTSyMQ5L8NtwKcKDZwlxYLk=; b=mfkZ2vacbXQCwTkEvHf5zr0KGXpCXsKQ4fnLkD51npGRjQCO2Pb/D2z0u1WIkfq9vl iC0rbmjctFkNJL1aAQFy9ZysFE31X07JALtaXwBqGwbNTx9UonMdu2f8na8u+4MeaGbq WRtItJZGJUcHAS/ni6a8Z1UraZ0hJafGc22SZuJe0UP2nAu65ruGYZxrILBlNXE/rkQh ysln6Am7I5FtVAb3EpS8I88QbwMoAlkAZSUjXPP0VZus2Ic5mG2q0+8IaZQuksFplzfD XzX3MZaAAQ1xq1TULtZYaZ7yEfvHtOH5MriM1bYArXmBIMc5mSTcRm6+LdLL5UX1yded ArdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="Fa5o0Q/N"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si7504133ejp.43.2020.09.14.11.30.56; Mon, 14 Sep 2020 11:31:19 -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=@ziepe.ca header.s=google header.b="Fa5o0Q/N"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgINS0z (ORCPT + 99 others); Mon, 14 Sep 2020 14:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbgINS0n (ORCPT ); Mon, 14 Sep 2020 14:26:43 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1CACC06174A for ; Mon, 14 Sep 2020 11:26:42 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id h4so1169630ioe.5 for ; Mon, 14 Sep 2020 11:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=HCftYW5pkNNqFQk9r9loDTSyMQ5L8NtwKcKDZwlxYLk=; b=Fa5o0Q/NOmIT0fIIffUmuT0dvQOCBc1RB4q9emr1qNNhZMql35hB4OkYAn2bYFavFS CywAzLGuqK9YAMEjSNre3qyCeQ+6Jk1QIZA41YHRRY9O8VxfJUMBPAdc1vbrnC0fYG9m SCmHGma1QaWnMdJNDaiYdCa0DXU6IxEfoO0xcM1PP2QvAnc5tDFuGUiz28vjCKj9zGqg jtLWyl8VwfVv1N9qc5fDo5pCB7oPlwJNvZ8/X+6j+s3jUCQV+MHwCi0IKPa1fvE2lYow 2t0SgKCL6OfVU6prgN9xRhMhZVfOtsWH3AfxMEFCxBC6N94WesFzNV8IfHRwmj/aYYyH KilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HCftYW5pkNNqFQk9r9loDTSyMQ5L8NtwKcKDZwlxYLk=; b=rvsq+fLFaCf2e+zKZvZ7H1yB+AHIqY1Ws8q+arkBHDoSLOlxkUob4zPaTnrkuevwmh QiXKHJjzCS7P412o8n8SVILuIBK5tUnVSzz9T9Ga7Ss4946CxrOmRNND3kyimygCtJXS +BbLONID/wLXTTT3tzfPoYANLPr6y7tDXY8e9ySK/2gU1pv4JlN3Gd7vQ6DPp7ZzT67U ZM/bsNrbKYMwFCfzt1TScdhvINBdXlqRwV8tJ7nvy0FEVulaNm7CqalVSqsMZb3B+Z8V fNm+XIj1HVghpNvKMME4MVQp15qMtKtvsDn9QA6KAbZOOS748CvyY+zgpERyxmEO6EbT ZsFA== X-Gm-Message-State: AOAM533GTezjKDtpf/GMkN8RRTx+iZIE6gl9oR6P3zLjEtXc2O90lDdo PB91Ew4UmF2CR/79Iy0ko5FPsKtdXKUaNw== X-Received: by 2002:a02:ccae:: with SMTP id t14mr6562045jap.63.1600108001940; Mon, 14 Sep 2020 11:26:41 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id w22sm6295847iob.32.2020.09.14.11.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 11:26:40 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kHtBX-006E31-IR; Mon, 14 Sep 2020 15:26:39 -0300 Date: Mon, 14 Sep 2020 15:26:39 -0300 From: Jason Gunthorpe To: Bart Van Assche Cc: Sagi Grimberg , Yamin Friedman , kernel test robot , Max Gurtovoy , LKML , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, lkp@lists.01.org Subject: Re: [IB/srpt] c804af2c1d: last_state.test.blktests.exit_code.143 Message-ID: <20200914182639.GG1221970@ziepe.ca> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c86453d-d7ae-a36b-d827-7812999abc96@acm.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2020 at 03:00:30PM -0700, 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 > > +++ 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. Applied to for-rc Thanks, Jason