diff options
author | 2018-02-27 09:49:29 -0800 | |
---|---|---|
committer | 2018-02-27 10:54:25 -0700 | |
commit | 02aa8a8b2b84531fa78b9a486d9b2a0700f7bc08 (patch) | |
tree | c624848f67f66824358d4bbbd41f9e32b60673ab /tools/perf/scripts/python/export-to-postgresql.py | |
parent | blktrace_api.h: fix comment for struct blk_user_trace_setup (diff) | |
download | linux-dev-02aa8a8b2b84531fa78b9a486d9b2a0700f7bc08.tar.xz linux-dev-02aa8a8b2b84531fa78b9a486d9b2a0700f7bc08.zip |
bcache: correct flash only vols (check all uuids)
Commit 2831231d4c3f ("bcache: reduce cache_set devices iteration by
devices_max_used") adds c->devices_max_used to reduce iteration of
c->uuids elements, this value is updated in bcache_device_attach().
But for flash only volume, when calling flash_devs_run(), the function
bcache_device_attach() is not called yet and c->devices_max_used is not
updated. The unexpected result is, the flash only volume won't be run
by flash_devs_run().
This patch fixes the issue by iterate all c->uuids elements in
flash_devs_run(). c->devices_max_used will be updated properly when
bcache_device_attach() gets called.
[mlyle: commit subject edited for character limit]
Fixes: 2831231d4c3f ("bcache: reduce cache_set devices iteration by devices_max_used")
Reported-by: Tang Junhui <tang.junhui@zte.com.cn>
Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions