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

block: Remove references to __device_add_disk()

Since commit d1254a874971 ("block: remove support for delayed queue
registrations"), function __device_add_disk() has been replaced with
device_add_disk(), so fix up comments.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

John Garry and committed by
Jens Axboe
a74de0c3 96f03c8c

+3 -3
+3 -3
block/genhd.c
··· 795 795 * partitions associated with the gendisk, and unregisters the associated 796 796 * request_queue. 797 797 * 798 - * This is the counter to the respective __device_add_disk() call. 798 + * This is the counter to the respective device_add_disk() call. 799 799 * 800 800 * The final removal of the struct gendisk happens when its refcount reaches 0 801 801 * with put_disk(), which should be called after del_gendisk(), if 802 - * __device_add_disk() was used. 802 + * device_add_disk() was used. 803 803 * 804 804 * Drivers exist which depend on the release of the gendisk to be synchronous, 805 805 * it should not be deferred. ··· 1265 1265 * 1266 1266 * This function releases all allocated resources of the gendisk. 1267 1267 * 1268 - * Drivers which used __device_add_disk() have a gendisk with a request_queue 1268 + * Drivers which used device_add_disk() have a gendisk with a request_queue 1269 1269 * assigned. Since the request_queue sits on top of the gendisk for these 1270 1270 * drivers we also call blk_put_queue() for them, and we expect the 1271 1271 * request_queue refcount to reach 0 at this point, and so the request_queue