Files
linux/drivers/md
Shan Hai 95861df618 bcache: release dc->writeback_lock properly in bch_writeback_thread()
commit 3943b040f1 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: fadd94e05c (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
..
2014-01-14 23:23:03 -05:00
2015-10-31 19:06:01 -04:00
2015-10-31 19:06:01 -04:00
2018-04-08 11:51:57 +02:00
2012-07-30 17:25:16 -07:00
2015-10-31 19:06:01 -04:00
2007-10-20 02:01:26 +01:00
2015-10-31 19:05:59 -04:00
2015-08-13 12:31:57 -06:00
2017-10-21 17:09:05 +02:00
2015-10-24 17:16:19 +11:00
2015-08-13 12:31:57 -06:00
2018-05-30 07:49:01 +02:00