Re: [PATCH V14 06/24] mmc: block: Simplify cleaning up the queue

2017-11-23 Thread Linus Walleij
On Tue, Nov 21, 2017 at 2:42 PM, Adrian Hunter wrote: > Use blk_cleanup_queue() to shutdown the queue when the driver is removed, > and instead get an extra reference to the queue to prevent the queue being > freed before the final mmc_blk_put(). > > Signed-off-by: Adrian Hunter This is way mor

[PATCH V14 06/24] mmc: block: Simplify cleaning up the queue

2017-11-21 Thread Adrian Hunter
Use blk_cleanup_queue() to shutdown the queue when the driver is removed, and instead get an extra reference to the queue to prevent the queue being freed before the final mmc_blk_put(). Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 17 - drivers/mmc/core/queue.c |