From: Martin Wilck Subject: Re: [PATCH 4/4] libmultipath: fix checker detection for nvme devices Date: Thu, 2 Jul 2020 15:17:31 +0000 Message-ID: References: <1593643176-6206-1-git-send-email-bmarzins@redhat.com> <1593643176-6206-5-git-send-email-bmarzins@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1593643176-6206-5-git-send-email-bmarzins@redhat.com> Content-Language: en-US Content-ID: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: "bmarzins@redhat.com" , "christophe.varoqui@opensvc.com" Cc: "dm-devel@redhat.com" List-Id: dm-devel.ids On Wed, 2020-07-01 at 17:39 -0500, Benjamin Marzinski wrote: > In order to fix hwhandler autodetection, commit 8794a776 made > detect_alua() differentiate between failures to detect whether alua > was > supported, and successfully detecting that it was not supported. > However, this causes nvme devices to get the TUR checker assigned to > them. This is because there is nothing in detect_alua() to make it > only > work on scsi devices, and select_checker wasn't updated to handle > detect_alua() failing without setting pp->tpgs to TPGS_NONE. > > detect_alua() should automatically set pp->tpgs to TPGS_NONE and exit > on > non-scsi devices. Also, select_checker() should not assume that a > devices is ALUA, simply because if failed to detect if alua was > supported. > > Fixes: 8794a776 "libmultipath: fix ALUA autodetection when paths are > down" > Signed-off-by: Benjamin Marzinski Reviewed-by: Martin Wilck