]> git.baikalelectronics.ru Git - kernel.git/commit
block: Stop abusing rq->csd.list in blk-softirq
authorJan Kara <jack@suse.cz>
Mon, 24 Feb 2014 15:39:54 +0000 (16:39 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 24 Feb 2014 22:46:42 +0000 (14:46 -0800)
commit4d931b2fa7468635cffb768067c432a09bed7f3c
tree6d49945269bf454cf1682890d1f10789f23ca26d
parent9c1b82bb8fc78f6f7862c6ba9b9a5eaebd338f9b
block: Stop abusing rq->csd.list in blk-softirq

Abusing rq->csd.list for a list of requests to complete is rather ugly.
We use rq->queuelist instead which is much cleaner. It is safe because
queuelist is used by the block layer only for requests waiting to be
submitted to a device. Thus it is unused when irq reports the request IO
is finished.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-softirq.c