public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* ublk invert part scan bit logic
@ 2026-02-12 11:05 Jens Axboe
  2026-02-12 12:42 ` Ming Lei
  2026-02-12 13:08 ` Alexander Atanasov
  0 siblings, 2 replies; 11+ messages in thread
From: Jens Axboe @ 2026-02-12 11:05 UTC (permalink / raw)
  To: Ming Lei, linux-block@vger.kernel.org

Hi,

For ublk, there's this logic in in ublk_ctrl_start_dev():

/* Skip partition scan if disabled by user */
if (ub->dev_info.flags & UBLK_F_NO_AUTO_PART_SCAN) {
	clear_bit(GD_SUPPRESS_PART_SCAN, &disk->state);
} else {
	/* Schedule async partition scan for trusted daemons */
	if (!ub->unprivileged_daemons)
		schedule_work(&ub->partition_scan_work);
}

where the

clear_bit(GD_SUPPRESS_PART_SCAN, &disk->state);

seems reversed? Why is GD_SUPPRESS_PART_SCAN being cleared if
UBLK_F_NO_AUTO_PART_SCAN is set? Added in:

8443e2087e70 ("ublk: add UBLK_F_NO_AUTO_PART_SCAN feature flag")

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-02-12 18:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12 11:05 ublk invert part scan bit logic Jens Axboe
2026-02-12 12:42 ` Ming Lei
2026-02-12 12:48   ` Jens Axboe
2026-02-12 13:02     ` Ming Lei
2026-02-12 14:04       ` Hannes Reinecke
2026-02-12 14:22         ` Ming Lei
2026-02-12 15:06           ` Hannes Reinecke
2026-02-12 18:26           ` Alexander Atanasov
2026-02-12 13:08 ` Alexander Atanasov
2026-02-12 13:17   ` Ming Lei
2026-02-12 18:03     ` Alexander Atanasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox