diff options
| author | Christoph Hellwig <[email protected]> | 2021-07-01 10:16:37 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-07-01 10:21:24 -0600 |
| commit | 498dcc13fd6463de29b94e160f40ed04d5477cd8 (patch) | |
| tree | fac09e7780f90adc89db1d48fa7140a37e11af70 /lib/mpi/mpi-cmp.c | |
| parent | 2b7a8dc06d0f840345ae3c7ed6f9d55962b5f54a (diff) | |
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: bc359d03c7ec ("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]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions