Re: [PATCH v6 4/6] scsi: add BLIST_NO_LUN_1F blacklist flag

From: Hannes Reinecke

Date: Tue Jun 09 2026 - 03:31:01 EST


On 6/8/26 23:34, Phil Pemberton wrote:
Some multi-LUN devices respond to INQUIRY on unpopulated LUNs with
PQ=0 / PDT=0x1f instead of the standard PQ=3. The SCSI scan layer
normally adds such devices (PQ=0 means "connected"), producing
spurious "No Device" entries.

The scsi_target field pdt_1f_for_no_lun already exists to suppress
this, but was previously only set by the USB UFI driver.

Add BLIST_NO_LUN_1F so the flag can be set per-device from
scsi_devinfo, and wire it up in scsi_add_lun() to set
starget->pdt_1f_for_no_lun from the blacklist flags. This runs
during LUN 0 processing, before the sequential LUN scan probes
higher LUNs.

Signed-off-by: Phil Pemberton <philpem@xxxxxxxxxxxxx>
---
drivers/scsi/scsi_scan.c | 2 ++
include/scsi/scsi_devinfo.h | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich