mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
blk-sysfs: Rework documention of __blk_release_queue
The Notes section of the comment was removed, because now
blk_release_queue can only be executed from blk_cleanup_queue (being
called when the q->kobj reaches zero), and also blk_init_queue was removed
in a1ce35fa49
.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7585d5082e
commit
1e93642837
1 changed files with 7 additions and 12 deletions
|
@ -817,21 +817,16 @@ static void blk_free_queue_rcu(struct rcu_head *rcu_head)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __blk_release_queue - release a request queue when it is no longer needed
|
* __blk_release_queue - release a request queue
|
||||||
* @work: pointer to the release_work member of the request queue to be released
|
* @work: pointer to the release_work member of the request queue to be released
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* blk_release_queue is the counterpart of blk_init_queue(). It should be
|
* This function is called when a block device is being unregistered. The
|
||||||
* called when a request queue is being released; typically when a block
|
* process of releasing a request queue starts with blk_cleanup_queue, which
|
||||||
* device is being de-registered. Its primary task it to free the queue
|
* set the appropriate flags and then calls blk_put_queue, that decrements
|
||||||
* itself.
|
* the reference counter of the request queue. Once the reference counter
|
||||||
*
|
* of the request queue reaches zero, blk_release_queue is called to release
|
||||||
* Notes:
|
* all allocated resources of the request queue.
|
||||||
* The low level driver must have finished any outstanding requests first
|
|
||||||
* via blk_cleanup_queue().
|
|
||||||
*
|
|
||||||
* Although blk_release_queue() may be called with preemption disabled,
|
|
||||||
* __blk_release_queue() may sleep.
|
|
||||||
*/
|
*/
|
||||||
static void __blk_release_queue(struct work_struct *work)
|
static void __blk_release_queue(struct work_struct *work)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue