]> git.baikalelectronics.ru Git - kernel.git/commit
block: only call ->request_fn when the queue is not stopped
authorJens Axboe <jens.axboe@oracle.com>
Tue, 14 Oct 2008 07:51:06 +0000 (09:51 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 17 Oct 2008 06:46:57 +0000 (08:46 +0200)
commitd5bd9f1cd920bdea2f62b6902ed3992a3619f7c9
treea37df7feb2db67254cc8927730828e87706b2205
parent4ce65d8a2a9924b4bd999b24bbe92758e9f3b2e7
block: only call ->request_fn when the queue is not stopped

Callers should use either blk_run_queue/__blk_run_queue, or
blk_start_queueing() to invoke request handling instead of calling
->request_fn() directly as that does not take the queue stopped
flag into account.

Also add appropriate comments on the above functions to detail
their usage.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
block/elevator.c