android_kernel_oneplus_msm8998/drivers/md/bcache
Shan Hai 95861df618 bcache: release dc->writeback_lock properly in bch_writeback_thread()
commit 3943b040f11ed0cc6d4585fd286a623ca8634547 upstream.

The writeback thread would exit with a lock held when the cache device
is detached via sysfs interface, fix it by releasing the held lock
before exiting the while-loop.

Fixes: fadd94e05c02 (bcache: quit dc->writeback_thread when BCACHE_DEV_DETACHING is set)
Signed-off-by: Shan Hai <shan.hai@oracle.com>
Signed-off-by: Coly Li <colyli@suse.de>
Tested-by: Shenghui Wang <shhuiw@foxmail.com>
Cc: stable@vger.kernel.org #4.17+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:04:36 +02:00
..
alloc.c bcache: properly set task state in bch_writeback_thread() 2018-05-30 07:48:57 +02:00
bcache.h bcache: fix for data collapse after re-attaching an attached device 2018-05-30 07:48:57 +02:00
bset.c
bset.h
btree.c bcache: fix for allocator and register thread race 2018-05-30 07:48:57 +02:00
btree.h bcache: Make gc wakeup sane, remove set_task_state() 2017-02-23 17:43:10 +01:00
closure.c bcache: Really show state of work pending bit 2015-11-06 15:06:05 +01:00
closure.h block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
debug.c
debug.h
extents.c bcache: Fix building error on MIPS 2017-12-05 11:22:51 +01:00
extents.h
io.c bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
journal.c bcache: Fix building error on MIPS 2017-12-05 11:22:51 +01:00
journal.h
Kconfig
Makefile
movinggc.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
request.c bcache: fix kcrashes with fio in RAID5 backend dev 2018-05-30 07:49:02 +02:00
request.h
stats.c
stats.h
super.c bcache: fix for data collapse after re-attaching an attached device 2018-05-30 07:48:57 +02:00
sysfs.c bcache: return attach error when no cache set exist 2018-05-30 07:48:57 +02:00
sysfs.h
trace.c
util.c bcache: fix bch_hprint crash and improve output 2017-09-27 11:00:17 +02:00
util.h bcache: remove driver private bio splitting code 2015-08-13 12:31:40 -06:00
writeback.c bcache: release dc->writeback_lock properly in bch_writeback_thread() 2018-09-09 20:04:36 +02:00
writeback.h bcache: correct cache_dirty_target in __update_writeback_rate() 2017-09-27 11:00:17 +02:00