mmc: stop abusing the request queue_lock pointer
commitf5d72c5c55bc392523cbdcdedd575c280203d31c
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Nov 2018 08:10:06 +0000 (16 09:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Nov 2018 14:20:45 +0000 (17 07:20 -0700)
tree81e181b721b7b23a8468b34eb88ad88219cb4168
parentf04842734c7a68381ab3cb45628ffb3ff1029490
mmc: stop abusing the request queue_lock pointer

Replace the lock in mmc_blk_data that is only used through a pointer
in struct mmc_queue and to protect fields in that structure with
an actual lock in struct mmc_queue.

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c
drivers/mmc/core/queue.c
drivers/mmc/core/queue.h