Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C105031717E for ; Mon, 15 Jun 2026 23:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781566579; cv=none; b=YVFjGNuCoFvWetHf67VzcKuJT6vTPUOEoHCV20MPX7sS0sxsl3kBa4FOFl8tmINsQZu+rB1O79FkvaYg6CJXv8QB4DaIasTW3BxLOcYZur2dyBEDzgB8Ld2zUVia+xWE1snpAjx+gYC4texBPurg65urvwvoWD9Jh79AlTKxcic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781566579; c=relaxed/simple; bh=niHYllvVGDRuRKU7Bybrfb4OD7NTzMr9yn31YDwefxs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=sbP5jSUeQpzgknNFUtndOSckQBNiOe7fZOV3raekUOXjMrZNwudE+wct+j4hVeZ58vDcSd/hb16+pAdcH/H7hc4G3z+82ANO+8J34Q1wIWeB9d3/4H3t2kPai8SCwKZEyic+q2LqmOSo08laS6KsYGatVJUbGpAImMSAkyjutQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SkhlF4CA; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SkhlF4CA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781566576; h=from:from:reply-to:subject:subject: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=ejsM6lq8n3iSzMP9DRpv4eVwCbNSQdnup3+yWPSTfTU=; b=SkhlF4CADqWG2Dxnt70Kk4pbvD7TK4ArjIU9DEXUw/q0s1I/h6LzbJ6tbn7hjG/4Q/P+rf lx4k4TdMxCZ9KWiA4ZvIIrKIWDIt3/SIcDPbq+mur5ZTgoA3y0xr3GFPbWoijorhKAVcMe 2tCkCf4YjgJsTkVDnBxjkgUz2iexSPY= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-K2b06GAJMvKAqNIrAGan3A-1; Mon, 15 Jun 2026 19:36:15 -0400 X-MC-Unique: K2b06GAJMvKAqNIrAGan3A-1 X-Mimecast-MFC-AGG-ID: K2b06GAJMvKAqNIrAGan3A_1781566574 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D75CE1955F4A; Mon, 15 Jun 2026 23:36:13 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (bmarzins-01.fast.eng.rdu2.dc.redhat.com [10.6.23.12]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A29573008B37; Mon, 15 Jun 2026 23:36:13 +0000 (UTC) Received: from bmarzins-01.fast.eng.rdu2.dc.redhat.com (localhost [127.0.0.1]) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.18.1/8.17.1) with ESMTPS id 65FNaChQ804997 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 15 Jun 2026 19:36:12 -0400 Received: (from bmarzins@localhost) by bmarzins-01.fast.eng.rdu2.dc.redhat.com (8.18.1/8.18.1/Submit) id 65FNaCVx804996; Mon, 15 Jun 2026 19:36:12 -0400 From: Benjamin Marzinski To: Christophe Varoqui Cc: device-mapper development , Martin Wilck , Xose Vazquez Perez Subject: [PATCH v2 4/4] libmultipath: don't set hwhander for bio based devices Date: Mon, 15 Jun 2026 19:36:11 -0400 Message-ID: <20260615233611.804954-5-bmarzins@redhat.com> In-Reply-To: <20260615233611.804954-1-bmarzins@redhat.com> References: <20260615233611.804954-1-bmarzins@redhat.com> Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: P3C0DPx28atC35I03-T_3534JetEIB0KsodN2BI9U9U_1781566574 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true The kernel prints an error message when a bio-based multipath device sets a hardware handler, since bio-based devices only support using the already attached hardware handler as-is. Change select_hwhandler() to not set a hardware handler for bio-based devices. Signed-off-by: Benjamin Marzinski --- libmultipath/propsel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c index 277214f6..0202aaef 100644 --- a/libmultipath/propsel.c +++ b/libmultipath/propsel.c @@ -560,6 +560,11 @@ int select_hwhandler(struct config *conf, struct multipath *mp) dh_state = &handler[2]; + if (mp->queue_mode == QUEUE_MODE_BIO) { + mp->hwhandler = DEFAULT_HWHANDLER; + origin = "(setting: disabled due to \"queue_mode bio\")"; + goto set; + } /* * TPGS_UNDEF means that ALUA support couldn't determined either way * yet, probably because the path was always down. @@ -600,6 +605,7 @@ out: mp->hwhandler = DEFAULT_HWHANDLER; origin = tpgs_origin; } +set: mp->hwhandler = strdup(mp->hwhandler); condlog(3, "%s: hardware_handler = \"%s\" %s", mp->alias, mp->hwhandler, origin); -- 2.53.0