summaryrefslogtreecommitdiffstats
path: root/lib/refcount.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-04-07 16:52:27 +0200
committerJens Axboe <axboe@fb.com>2017-04-07 16:56:48 +0200
commit54d5329d425650fafaf90660a139c771d2d49cae (patch)
tree3fc6db73809742be0f0fdf403c77af02a6feeeba /lib/refcount.c
parentblk-mq-sched: set up scheduler tags when bringing up new queues (diff)
downloadlinux-54d5329d425650fafaf90660a139c771d2d49cae.tar.xz
linux-54d5329d425650fafaf90660a139c771d2d49cae.zip
blk-mq-sched: fix crash in switch error path
In elevator_switch(), if blk_mq_init_sched() fails, we attempt to fall back to the original scheduler. However, at this point, we've already torn down the original scheduler's tags, so this causes a crash. Doing the fallback like the legacy elevator path is much harder for mq, so fix it by just falling back to none, instead. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/refcount.c')
0 files changed, 0 insertions, 0 deletions