blk-mq-sched: don't hold queue_lock when calling exit_icq
authorOmar Sandoval <osandov@fb.com>
Fri, 10 Feb 2017 18:32:34 +0000 (10:32 -0800)
committerJens Axboe <axboe@fb.com>
Fri, 10 Feb 2017 18:34:47 +0000 (11:34 -0700)
commit3d492c2e0146ccaad08c7cbe16e2e229328b5e79
treec78b95cdedb006cdc11a99e6a0e253f8875cee11
parentf6f94300cda0f85180a0dd8838d1cc855661e239
blk-mq-sched: don't hold queue_lock when calling exit_icq

None of the other blk-mq elevator hooks are called with this lock held.
Additionally, it can lead to circular locking dependencies between
queue_lock and the private scheduler lock.

Reported-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-ioc.c