Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme-multipath: put module reference when delayed removal work is canceled

The delayed disk removal work is canceled when a NS (re)appears. However,
we do not put the module reference grabbed in nvme_mpath_remove_disk(), so
fix that.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>

authored by

John Garry and committed by
Keith Busch
3f150f0f 20925812

+2 -1
+2 -1
drivers/nvme/host/core.c
··· 4083 4083 mutex_unlock(&ctrl->subsys->lock); 4084 4084 4085 4085 #ifdef CONFIG_NVME_MULTIPATH 4086 - cancel_delayed_work(&head->remove_work); 4086 + if (cancel_delayed_work(&head->remove_work)) 4087 + module_put(THIS_MODULE); 4087 4088 #endif 4088 4089 return 0; 4089 4090