]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: do not initialize req->special
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2014 08:30:07 +0000 (10:30 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 15 Apr 2014 20:03:02 +0000 (14:03 -0600)
commit731a4bb2f87fd73fbbd97d9a02b95df82ee36953
treec36c53290f8b5ed7f1ae9a89b534a9c3155c0491
parentb2e47d9fd11afd15d3081ef473d4d8142daa903b
blk-mq: do not initialize req->special

Drivers can reach their private data easily using the blk_mq_rq_to_pdu
helper and don't need req->special.  By not initializing it code can
be simplified nicely, and we also shave off a few more instructions from
the I/O path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c
block/blk-mq.c
block/blk-mq.h
drivers/block/null_blk.c
drivers/block/virtio_blk.c