[PATCH 07/13] libmultipath: Add delayed removal support
John Garry
john.g.garry at oracle.com
Wed Apr 8 04:28:40 PDT 2026
On 02/03/2026 12:41, Nilay Shroff wrote:
>> +
>> void mpath_add_sysfs_link(struct mpath_disk *mpath_disk)
>> {
>> struct mpath_head *mpath_head = mpath_disk->mpath_head;
>> @@ -793,6 +868,8 @@ struct mpath_head *mpath_alloc_head(void)
>> mutex_init(&mpath_head->lock);
>> kref_init(&mpath_head->ref);
>> + mpath_head->delayed_removal_secs = 0;
>> +
>> INIT_WORK(&mpath_head->requeue_work, mpath_requeue_work);
>> spin_lock_init(&mpath_head->requeue_lock);
>> bio_list_init(&mpath_head->requeue_list);
>
> I think we also need to initialize ->drv_module here.
Hi Nilay,
I am just coming back to this now. About NVMe multipath delayed disk
removal, did you consider a blktests testcase to cover it? I might look
at it if I have a chance (and it makes sense to do so).
Thanks!
More information about the Linux-nvme
mailing list