]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-sched: set up scheduler tags when bringing up new queues
authorOmar Sandoval <osandov@fb.com>
Wed, 5 Apr 2017 19:01:31 +0000 (12:01 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 7 Apr 2017 14:56:46 +0000 (08:56 -0600)
commit3d58bc49dfdc23827fa9a606e51b43b9eedc15a7
tree388756bb6862ea8943c87240644a33feb8c5c402
parent3319fba3955cca2044c0d8ec9182ca5f480b12bc
blk-mq-sched: set up scheduler tags when bringing up new queues

If a new hardware queue is added at runtime, we don't allocate scheduler
tags for it, leading to a crash. This hooks up the scheduler framework
to blk_mq_{init,exit}_hctx() to make sure everything gets properly
initialized/freed.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.c
block/blk-mq-sched.h
block/blk-mq.c