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)
commit80a4b58e36b63d7b0b592beb1bd6410aadeeb63c
treea37df7feb2db67254cc8927730828e87706b2205
parentee2e992cc28553f6c4dd1ab5483c8733c393626b
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