Skip to content

Commit a74de0c

Browse files
johnpgarryaxboe
authored andcommitted
block: Remove references to __device_add_disk()
Since commit d1254a8 ("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>
1 parent 96f03c8 commit a74de0c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

block/genhd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,11 @@ static void disable_elv_switch(struct request_queue *q)
795795
* partitions associated with the gendisk, and unregisters the associated
796796
* request_queue.
797797
*
798-
* This is the counter to the respective __device_add_disk() call.
798+
* This is the counter to the respective device_add_disk() call.
799799
*
800800
* The final removal of the struct gendisk happens when its refcount reaches 0
801801
* with put_disk(), which should be called after del_gendisk(), if
802-
* __device_add_disk() was used.
802+
* device_add_disk() was used.
803803
*
804804
* Drivers exist which depend on the release of the gendisk to be synchronous,
805805
* it should not be deferred.
@@ -1265,7 +1265,7 @@ static const struct attribute_group *disk_attr_groups[] = {
12651265
*
12661266
* This function releases all allocated resources of the gendisk.
12671267
*
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
12691269
* assigned. Since the request_queue sits on top of the gendisk for these
12701270
* drivers we also call blk_put_queue() for them, and we expect the
12711271
* request_queue refcount to reach 0 at this point, and so the request_queue

0 commit comments

Comments
 (0)