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)
commit67e69d5220c904238f94bb2e6001d7c590f5a0bb
tree3b2133b028340c2db774021a3f1d08d0d22cc413
parent921579b22f99170c6bc2d57f2720b54e017e99cc
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