diff options
author | Coly Li <colyli@suse.de> | 2019-06-28 14:59:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-28 16:39:16 +0300 |
commit | 5c2a634cbfaf1971cb6453fe5f86d83585257790 (patch) | |
tree | dbf29ffebf77a66916786454fb3d88b4a03138c5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f54d801dda14942dbefa00541d10603015b7859c (diff) | |
download | linux-5c2a634cbfaf1971cb6453fe5f86d83585257790.tar.xz |
bcache: stop writeback kthread and kworker when bch_cached_dev_run() failed
In bch_cached_dev_attach() after bch_cached_dev_writeback_start()
called, the wrireback kthread and writeback rate update kworker of the
cached device are created, if the following bch_cached_dev_run()
failed, bch_cached_dev_attach() will return with -ENOMEM without
stopping the writeback related kthread and kworker.
This patch stops writeback kthread and writeback rate update kworker
before returning -ENOMEM if bch_cached_dev_run() returns error.
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions