summaryrefslogtreecommitdiff
path: root/drivers/md/bcache/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/alloc.c')
-rw-r--r--drivers/md/bcache/alloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c
index 7ced8ebc2611..ece8f5a1aadd 100644
--- a/drivers/md/bcache/alloc.c
+++ b/drivers/md/bcache/alloc.c
@@ -1423,6 +1423,9 @@ const char *bch_cache_allocator_start(struct cache *ca)
}
spin_unlock(&ca->freelist_lock);
+ if (cache_set_init_fault("alloc_start"))
+ return "dynamic fault";
+
if (!fifo_full(&ca->free[RESERVE_PRIO]))
return "couldn't find enough available buckets to write prios";