]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: remove req back pointer
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 19 May 2017 13:37:27 +0000 (15:37 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:24 +0000 (10:30 +0200)
commit787c329908f4ed7de45ade4c15a82f619d34fb47
tree3b2133b028340c2db774021a3f1d08d0d22cc413
parentd1744f193794d9600baa1fa7083796afe3f1ced0
mmc: block: remove req back pointer

Just as we can use blk_mq_rq_from_pdu() to get the per-request
tag we can use blk_mq_rq_to_pdu() to get a request from a tag.
Introduce a static inline helper so we are on the clear what
is happening.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c
drivers/mmc/core/queue.h