diff options
author | Omar Sandoval <osandov@fb.com> | 2017-03-28 16:12:17 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-29 08:09:08 -0600 |
commit | 02ba8893ac9aa34fcb4ce2a9baef5615b190335a (patch) | |
tree | 772bf87a8074d74b8748e878249568627a2cce0b /block/compat_ioctl.c | |
parent | 0c9539a431bd4e4cbe475eb17e587f3ac06f2ae2 (diff) | |
download | kernel_replicant_linux-02ba8893ac9aa34fcb4ce2a9baef5615b190335a.tar.gz kernel_replicant_linux-02ba8893ac9aa34fcb4ce2a9baef5615b190335a.tar.bz2 kernel_replicant_linux-02ba8893ac9aa34fcb4ce2a9baef5615b190335a.zip |
block: fix leak of q->rq_wb
CONFIG_DEBUG_TEST_DRIVER_REMOVE found a possible leak of q->rq_wb when a
request queue is reregistered. This has been a problem since wbt was
introduced, but the WARN_ON(!list_empty(&stats->callbacks)) in the
blk-stat rework exposed it. Fix it by cleaning up wbt when we unregister
the queue.
Fixes: 87760e5eef35 ("block: hook up writeback throttling")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/compat_ioctl.c')
0 files changed, 0 insertions, 0 deletions