mirror of https://github.com/torvalds/linux.git
block: Remove references to __device_add_disk()
Since commit d1254a8749 ("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>
This commit is contained in:
parent
96f03c8cb2
commit
a74de0c366
|
|
@ -795,11 +795,11 @@ static void disable_elv_switch(struct request_queue *q)
|
||||||
* partitions associated with the gendisk, and unregisters the associated
|
* partitions associated with the gendisk, and unregisters the associated
|
||||||
* request_queue.
|
* request_queue.
|
||||||
*
|
*
|
||||||
* This is the counter to the respective __device_add_disk() call.
|
* This is the counter to the respective device_add_disk() call.
|
||||||
*
|
*
|
||||||
* The final removal of the struct gendisk happens when its refcount reaches 0
|
* The final removal of the struct gendisk happens when its refcount reaches 0
|
||||||
* with put_disk(), which should be called after del_gendisk(), if
|
* with put_disk(), which should be called after del_gendisk(), if
|
||||||
* __device_add_disk() was used.
|
* device_add_disk() was used.
|
||||||
*
|
*
|
||||||
* Drivers exist which depend on the release of the gendisk to be synchronous,
|
* Drivers exist which depend on the release of the gendisk to be synchronous,
|
||||||
* it should not be deferred.
|
* it should not be deferred.
|
||||||
|
|
@ -1265,7 +1265,7 @@ static const struct attribute_group *disk_attr_groups[] = {
|
||||||
*
|
*
|
||||||
* This function releases all allocated resources of the gendisk.
|
* This function releases all allocated resources of the gendisk.
|
||||||
*
|
*
|
||||||
* Drivers which used __device_add_disk() have a gendisk with a request_queue
|
* Drivers which used device_add_disk() have a gendisk with a request_queue
|
||||||
* assigned. Since the request_queue sits on top of the gendisk for these
|
* assigned. Since the request_queue sits on top of the gendisk for these
|
||||||
* drivers we also call blk_put_queue() for them, and we expect the
|
* drivers we also call blk_put_queue() for them, and we expect the
|
||||||
* request_queue refcount to reach 0 at this point, and so the request_queue
|
* request_queue refcount to reach 0 at this point, and so the request_queue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue