]> git.baikalelectronics.ru Git - kernel.git/commit
block: add q->nr_rqs[] and move q->rq.elvpriv to q->nr_rqs_elvpriv
authorTejun Heo <tj@kernel.org>
Tue, 5 Jun 2012 03:40:58 +0000 (20:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jun 2012 09:53:51 +0000 (11:53 +0200)
commit83032d01abf8fd5d698e96171c93ce178ac6444f
tree36ff209f0655c5da9cfb7c5c6f6e9b9786841201
parent542a88d763548658247eb49b5a4e07bfe82d95ce
block: add q->nr_rqs[] and move q->rq.elvpriv to q->nr_rqs_elvpriv

Add q->nr_rqs[] which currently behaves the same as q->rq.count[] and
move q->rq.elvpriv to q->nr_rqs_elvpriv.  blk_drain_queue() is updated
to use q->nr_rqs[] instead of q->rq.count[].

These counters separates queue-wide request statistics from the
request list and allow implementation of per-queue request allocation.

While at it, properly indent fields of struct request_list.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h