Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: grab a device refcount in disk_uevent
Sending uevents requires the struct device to be alive. To ensure that grab the device refcount instead of just an inode reference. Fixes: bc359d0 ("block: add a disk_uevent helper") Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information