]> Git Repo - linux.git/commit - block/genhd.c
block: use put_device in put_disk
authorChristoph Hellwig <[email protected]>
Tue, 10 Nov 2020 06:25:37 +0000 (07:25 +0100)
committerJens Axboe <[email protected]>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commitefdc41c8d49fc1ff9bbef8f68f1cf1d8d59164a1
treea763613547ca892e966fe8b4ec6733df1987b508
parente79319af6d8cfd7311fef1bfbb1c59c94e6e10a9
block: use put_device in put_disk

Use put_device to put the device instead of poking into the internals
and using kobject_put.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/genhd.c
This page took 0.058079 seconds and 4 git commands to generate.