]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: don't call wbt_disable_default() with IRQs disabled
authorJens Axboe <axboe@fb.com>
Thu, 16 Feb 2017 14:57:33 +0000 (07:57 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 16 Feb 2017 15:02:06 +0000 (08:02 -0700)
commit130d46b4d3fedbebc2c66b6e163f60fdc2d259f8
tree1fc9ab7169aeb6527fac23de6ba16b1e677c2236
parent66c4346b494d4c5a9d5f9bc2b9f5305c2f5eb230
cfq-iosched: don't call wbt_disable_default() with IRQs disabled

wbt_disable_default() calls del_timer_sync() to wait for the wbt
timer to finish before disabling throttling. We can't do this with
IRQs disable. This fixes a lockdep splat on boot, if non-root
cgroups are used.

Reported-by: Gabriel C <nix.or.die@gmail.com>
Fixes: c6e907c731a3 ("block: hook up writeback throttling")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c