Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp867950rwd; Thu, 15 Jun 2023 03:16:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4oPlne9fWP1E7tAtRZA1Wuirpn+J8UBBaarjt7UXmg4XOJki20yGzHnCsFenlAIGGgxSLz X-Received: by 2002:a17:902:e752:b0:1b0:6038:2982 with SMTP id p18-20020a170902e75200b001b060382982mr17787158plf.41.1686824166805; Thu, 15 Jun 2023 03:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686824166; cv=none; d=google.com; s=arc-20160816; b=SYsAFp9RTULZvZOC7u4LZ3enw5ib10hx6cBqiLyzJimrOmlwV6rGZDIcS2aT4Ha7V0 VX68GQxRPJuaIs+C0Otudl0lD9jzfG7w4Ut9GQ2xRZpXv/6L2leUd5kkZmj9yUbyCoeI jhyG/mmXA8wdG99jfKV+BHSR2LK0XmS3lnt9Kb5wa47+4vGHInBsQsDfUL4S30wjK7/D QFTprTgmiYPvS3wfAuTc4JYQ4BIRqpenI8vZDfbr4fpkWv0Zx2Zjdpt+ozxamjiGERVf DizYL6ACcwV99gTPfUUSVuUu+ZRHTW9iSfcX/BJ81gSytIJdYp6SYdoGdDnNBJzqaTRH s7UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=atHh4oZI3Lsgj++bTTX/cCma79tEArLh42dujofeoy4=; b=veH56o3Uw67nwoTLY770ZbqId/ptYk6SmaEJjqrQzcYyYSHIPJOe+8VaRVJ1nYexPL VYoYOI43Xq9qmjp39sASzxfWlolpUzuX8xv7ZuCXm9C51scSA7DHeRaq1Jzpnn7bq0U7 xOUK0KZoPS66XmgIiLfk69JxiCWfrRcKoPTra7Lzm36u7X6ohSGevouwxkzojj6rMPuJ y4/1LL2FMO5mfg9qsGW+e2vOD/GDIIcOxes/lz4+zWAItAuD4gxfi8Bu58+8IJoM/7es sDwkhdPlopz8lqIekPzLmERg64Q+b04UYv2VwvQGdViD+h0NRB520g+UsbIL+8cCyyiJ PHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GpVS4WSn; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a170902da8e00b001b3bb739eddsi8814197plx.138.2023.06.15.03.15.53; Thu, 15 Jun 2023 03:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GpVS4WSn; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343778AbjFOKGr (ORCPT + 99 others); Thu, 15 Jun 2023 06:06:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343742AbjFOKGZ (ORCPT ); Thu, 15 Jun 2023 06:06:25 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68801297D; Thu, 15 Jun 2023 03:06:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DA87D1FE03; Thu, 15 Jun 2023 10:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1686823562; h=from:from:reply-to: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=atHh4oZI3Lsgj++bTTX/cCma79tEArLh42dujofeoy4=; b=GpVS4WSngjatjfN3tY/rif++DZgurobmGiLntZx3MnP37Rd7fCeizQ7YNdcCpmrhkjX/uc cokIdZHX2Nikwhn4zWEX2PJ4PY4MtHOZ1qB8HZG0a1dO7r9LgOSCI8KcfIOCE7GQCsU/jB hTw1idddJ2d8t9qrkCyPOteOxuPQflM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1686823562; h=from:from:reply-to: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=atHh4oZI3Lsgj++bTTX/cCma79tEArLh42dujofeoy4=; b=QLf5mIhi+VSkUhJXZM3R0anBQSteqJFIAYNWOxTvxK/shYcp5SRNOclkMRlnmHcmAc4FiJ y4kgsj+Wa/UJitCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C426C13A47; Thu, 15 Jun 2023 10:06:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id y6ufL4riimQVZgAAMHmgww (envelope-from ); Thu, 15 Jun 2023 10:06:02 +0000 Message-ID: <5d652560-cd80-228d-a107-a2cf8abda45d@suse.de> Date: Thu, 15 Jun 2023 12:06:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1 1/2] nvme-fc: Do not wait in vain when unloading module Content-Language: en-US To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Sagi Grimberg , James Smart References: <20230615094356.14878-1-dwagner@suse.de> <20230615094356.14878-2-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20230615094356.14878-2-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/23 11:43, Daniel Wagner wrote: > The module unload code will wait for a controller to be delete even when > there is no controller and we wait for completion forever to happen. > Thus only wait for the completion when there is a controller which > needs to be removed. > > Signed-off-by: Daniel Wagner > --- > drivers/nvme/host/fc.c | 20 +++++++++++++------- > 1 file changed, 13 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes