diff options
author | Coly Li <colyli@suse.de> | 2019-04-25 00:48:40 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-24 10:56:28 -0600 |
commit | eb8cbb6df38f6e5124a3d5f1f8a3dbf519537c60 (patch) | |
tree | 600f0789137da1c8fdfb4901d742e7f411a762db /drivers/md/dm-round-robin.c | |
parent | 63d63b51d70fb5155754dcf0baa2c1700bcafcb0 (diff) | |
download | linux-eb8cbb6df38f6e5124a3d5f1f8a3dbf519537c60.tar.gz linux-eb8cbb6df38f6e5124a3d5f1f8a3dbf519537c60.tar.bz2 linux-eb8cbb6df38f6e5124a3d5f1f8a3dbf519537c60.zip |
bcache: improve bcache_reboot()
This patch tries to release mutex bch_register_lock early, to give
chance to stop cache set and bcache device early.
This patch also expends time out of stopping all bcache device from
2 seconds to 10 seconds, because stopping writeback rate update worker
may delay for 5 seconds, 2 seconds is not enough.
After this patch applied, stopping bcache devices during system reboot
or shutdown is very hard to be observed any more.
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-round-robin.c')
0 files changed, 0 insertions, 0 deletions