Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3663117pxb; Mon, 1 Feb 2021 01:02:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTPuGHc+JbO3zNqORwnRuryKFauVQimYfB18IuFt/DJiLEInHx6LAtkx4l7EmABKaciyui X-Received: by 2002:a17:906:2a06:: with SMTP id j6mr16099390eje.164.1612170125180; Mon, 01 Feb 2021 01:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612170125; cv=none; d=google.com; s=arc-20160816; b=MLHTJl03Vh1E9idyqJjaq7PInAgHExt8XBbSotNJSs4mH+DFJrAzTZoInntNBQonos t+t9DXqvElX2UxDrKzb6Hqjp0SRyTkIEOsPcOsaAQHNci8D+HEVeURC5OR/PblYGnNh+ F98XF2jGodvrh5CELs1IOdhzi8IRVUHNHnwG5ThMUtT5tFavpakOAMlfR7BLgW8Qpn5b WkXkXIRvjun+C13w8Y6c6zAkAIkMsKnD+a7tfaDm5Op2JN+qZoOgpe0yaYqhMzgSsUO+ 2A9vGolsb5rw8U2eO2llqlzbA1svyEsWF3mK2FTT/TlKNsS0VYTvdp06k8ZAm6VrqLaF KbNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=wPzt7jQXwfibv/ZZDli6vdIybXOuNkJsp1sjKAoxtwc=; b=yoxrtt5ykQQBq5yFufyfzHqf04GaAFv8AR6XQPOQRA9N7L7zzZY0aQXZAgcVmGYN7L jOei16dnczQCKgObfjrenLZ6tJkmXDokNbKufKLOAyLfoOS6xFxFA8/uPFbK2WKqWcoK iSBJl1beE4QKT/d2yv8iBEK38y7+noG8P1Yzsztus8Lt2WJI8U42tsBekbejdS7R6SQ/ PQFw+SBqJizVXrRQg2VsT8C+AE1PaS0GysZBkpGfd1rFzAH+h8CecpLzYtD3hqhxIFNs 4lZ1+SyByGe00CxXbTpFUJJjPA5ohd1/8+sWYKIu43Ch5920I5cEVBqc2RyLUQtJpw7w P8FQ== ARC-Authentication-Results: i=1; mx.google.com; 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 oz19si3984345ejb.179.2021.02.01.01.01.40; Mon, 01 Feb 2021 01:02:05 -0800 (PST) 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; 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 S232636AbhBAI6F (ORCPT + 99 others); Mon, 1 Feb 2021 03:58:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:42290 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232549AbhBAI6E (ORCPT ); Mon, 1 Feb 2021 03:58:04 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2A994AE42; Mon, 1 Feb 2021 08:57:23 +0000 (UTC) Subject: Re: [PATCH v2] nvme-multipath: Early exit if no path is available To: Chao Leng , Sagi Grimberg , Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Keith Busch , Christoph Hellwig References: <20210127103033.15318-1-dwagner@suse.de> <20210128075837.u5u56t23fq5gu6ou@beryllium.lan> <69575290-200e-b4a1-4269-c71e4c2cc37b@huawei.com> <20210128094004.erwnszjqcxlsi2kd@beryllium.lan> <675d3cf7-1ae8-adc5-b6d0-359fe10f6b23@grimberg.me> <59cd053e-46cb-0235-141f-4ce919c93f48@huawei.com> <65392653-6b03-9195-f686-5fe4b3290bd2@suse.de> <81b22bbf-4dd3-6161-e63a-9699690a4e4f@huawei.com> <715dd943-0587-be08-2840-e0948cf0bc62@suse.de> <6ceff3cb-c9e9-7e74-92f0-dd745987c943@huawei.com> <114751ac-1f7d-ce5e-12c5-7d6303bdb999@suse.de> From: Hannes Reinecke Message-ID: <47a1b796-9d91-5947-4bac-dd8f397041a3@suse.de> Date: Mon, 1 Feb 2021 09:57:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/21 9:47 AM, Chao Leng wrote: > > > On 2021/2/1 15:29, Hannes Reinecke wrote:[ .. ] >> Urgh. Please, no. That is well impossible to debug. >> Can you please open-code it to demonstrate where the difference to the >> current (and my fixed) versions is? >> I'm still not clear where the problem is once we applied both patches. > For example assume the list has three path, and all path is not > NVME_ANA_OPTIMIZED: > head->next = ns1; > ns1->next = ns2; > ns2->next = head; > old->next = ns2; > And this is where I have issues with. Where does 'old' come from? Clearly it was part of the list at one point; so what happened to it? Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer