OSDN Git Service

mmc: stop abusing the request queue_lock pointer
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Nov 2018 16:02:17 +0000 (17:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Nov 2018 19:13:34 +0000 (12:13 -0700)
commit310df020cdd7570e1a8ee43bd58999a743686eda
tree56b9bc1d9461d27a030cb76dd1c99e8841ef9ff3
parentb061b326287d45aeaf313f7dddd02e88e31db14b
mmc: stop abusing the request queue_lock pointer

mmc uses the block layer struct request pointer to indirect their own
lock to the mmc_queue structure, given that the original lock isn't
reachable outside of block.c.  Add a lock pointer to struct mmc_queue
instead and stop overriding the block layer lock which protects fields
entirely separate from the mmc use.

Reviewed-by: Hannes Reinecke <hare@suse.com>
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