Coly Li e775339e1a 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>
2019-06-28 07:39:15 -06:00
..
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-14 05:49:35 -10:00
2019-05-31 08:34:32 -07:00
2019-06-12 05:57:05 -10:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-08 12:52:42 -07:00
2019-06-10 07:35:55 -10:00
2019-06-10 07:19:56 -10:00
2019-05-27 11:08:23 -04:00
2019-06-08 12:52:42 -07:00