Re: [PATCH 07/13] libmultipath: Add delayed removal support
From: John Garry
Date: Mon Mar 02 2026 - 11:21:35 EST
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.
Yes, thanks!