diff options
author | Coly Li <colyli@suse.de> | 2019-06-28 14:59:35 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-06-28 16:39:15 +0300 |
commit | e775339e1ae1205b47d94881db124c11385e597c (patch) | |
tree | 8b898a7b1ab8eeef2b131e8d86bde507eeea0462 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bd9026c8a7f33ebe25543b7b7e6276b49db60f7e (diff) | |
download | linux-e775339e1ae1205b47d94881db124c11385e597c.tar.xz |
bcache: check CACHE_SET_IO_DISABLE in allocator code
If CACHE_SET_IO_DISABLE of a cache set flag is set by too many I/O
errors, currently allocator routines can still continue allocate
space which may introduce inconsistent metadata state.
This patch checkes CACHE_SET_IO_DISABLE bit in following allocator
routines,
- bch_bucket_alloc()
- __bch_bucket_alloc_set()
Once CACHE_SET_IO_DISABLE is set on cache set, the allocator routines
may reject allocation request earlier to avoid potential inconsistent
metadata.
Signed-off-by: Coly Li <colyli@suse.de>
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