[PATCH V3 2/8] nvme: add sysfs attribute to change admin timeout per nvme controller
Daniel Wagner
dwagner at suse.de
Wed Apr 22 03:10:52 PDT 2026
On Fri, Apr 10, 2026 at 09:39:18AM +0200, Maurizio Lombardi wrote:
> + /*
> + * Wait until the controller reaches the LIVE state
> + * to be sure that admin_q and fabrics_q are
> + * properly initialized.
> + */
> + if (!test_bit(NVME_CTRL_STARTED_ONCE, &ctrl->flags))
> + return -EBUSY;
I assume the idea is to use an udev rule to set the value. Though I
think this is racy:
nvme_change_uevent(ctrl, "NVME_EVENT=connected");
set_bit(NVME_CTRL_STARTED_ONCE, &ctrl->flags);
More information about the Linux-nvme
mailing list