Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6508706imu; Wed, 14 Nov 2018 02:38:30 -0800 (PST) X-Google-Smtp-Source: AJdET5e6/cUWncHTxbkdEFSWmBWZ5EtACyU7f1wca4k5ST6FH1ErwopY5S/t7kGk+qaYBbdXy46F X-Received: by 2002:a17:902:1103:: with SMTP id d3-v6mr1297113pla.249.1542191910085; Wed, 14 Nov 2018 02:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542191910; cv=none; d=google.com; s=arc-20160816; b=FwgL5Wv7UPHMO3chBYaQW1iMMO4bSfeNs+W3cVC1BM+EQANIJQmde9WkvBR1tEN9Mr si85djjXwH1KADQEVz8lryU0NMn89m/622Ry/tU6piQ7TmvrbMEcakVOh6GVkjskbElW m/el+s2wb8nbg+fLRrasBUJrCsbnUvdQbxnztrEwnQN/wXStQcgI1k6qOF34nJkvQkGP v9qkeYMm6PS5RIn7awctBXIaR3lNaiMQKrcHtYc/q/MZ4/qNKzfgGD5KTAimwaZHmURX dqV4kfAn9briGoeTiUlVunzkNIL4SSLx9CQStzoUpfF/MjnMfvkAPnCuMeJa0Zuih+sR nHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=dDMsejKXVJsJtkMB+Oy8JSuwkdQ4N+S6J9ygb+u74ko=; b=nOnIZXU9zqw3wC6yOxGu/zpZI3mnhRAUwcEq7yL8JpRmbM/wr5l04JSXpySULXYFEH iJZl/t1WqGUoHUozaG2U9vPUsW3TmO9Tp+doaLwcWQ8KNJ/G5z7TJjW33NPGfJ4Q1TF+ l5dW56Y1p6OlYW708jjZk4TPCmPSDYZ/WAQtQMs1TqA+ZRhGSAww5mDondDV+N+gH/A1 LSHEf9P4zfGi6vJ+IbtRxLph4AJfnGLq0qf1Zyc7pBBV3/5b6Ecz+Yzl53KgXsCdcDkg 77ptlWu0FUpaLcw87/ZusxdGwm47jokz/Rqz1LIctDVQn8nDTK0FJN/IyvUz6kXnr5g+ Mvwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si16761993pgg.2.2018.11.14.02.38.14; Wed, 14 Nov 2018 02:38:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732829AbeKNUjP (ORCPT + 99 others); Wed, 14 Nov 2018 15:39:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:46666 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727807AbeKNUjP (ORCPT ); Wed, 14 Nov 2018 15:39:15 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8DE2AB015; Wed, 14 Nov 2018 10:36:33 +0000 (UTC) Message-ID: <3ade435ef087d61a293863a62c1b794ecf8dba14.camel@suse.de> Subject: Re: [dm-devel] multipath-tools: add ANA support for NVMe device From: Martin Wilck To: Hannes Reinecke , Sagi Grimberg , Keith Busch , axboe@kernel.dk, hch@lst.de, Mike Snitzer Cc: xose.vazquez@gmail.com, chengjike.cheng@huawei.com, lijie , shenhong09@huawei.com, wangzhoumengjian@huawei.com, linux-nvme@lists.infradead.org, sschremm@netapp.com, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 14 Nov 2018 11:36:31 +0100 In-Reply-To: <30cf7af7-8826-55bd-e39a-4f81ed032f6d@suse.de> References: <1541657381-7452-1-git-send-email-lijie34@huawei.com> <2691abf6733f791fb16b86d96446440e4aaff99f.camel@suse.com> <20181112215323.GA7983@redhat.com> <20181113161838.GC9827@localhost.localdomain> <20181113180008.GA12513@redhat.com> <20181114053837.GA15086@redhat.com> <30cf7af7-8826-55bd-e39a-4f81ed032f6d@suse.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-11-14 at 08:49 +0100, Hannes Reinecke wrote: > On 11/14/18 6:38 AM, Mike Snitzer wrote: > > > > Not holding my breath BUT: > > if decoupling the reading of ANA state from native NVMe > > multipathing > > specific work during nvme request completion were an acceptable > > advancement I'd gladly do the work. > > > I'd be happy to work on that, given that we'll have to have 'real' > ANA > support for device-mapper anyway for SLE12 SP4 etc. So, what's the way ahead for multipath-tools? Given that, IIUC, at least one official kernel (4.19) has been released with ANA support but without the ANA sysfs attributes exported to user space, multipath-tools can't rely on them being present. I for one have no issue with copying code from nvme-cli and doing NVMe ioctls from multipath-tools, as in Lijie's patch. When those sysfs attributes are added (and work as expected), we will use them, but IMO we'll need to fall back to ioctls until then, and also afterwards, because we can't assume to be always running on the latest kernel. Best, Martin