summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-03-28 06:45:42 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-03-28 10:37:06 -0400
commitc9b388d2f0ee95392c3ed7f89df48b5730fdccb5 (patch)
tree138d6eea8a56a4ce3646625b92e94f4ae08585d4
parent919a34d47a68f3e5f00a7ce5efb67748ec31bd62 (diff)
bcachefs: increase max nr of io timers
this fixes a BUG_ON() when running with too many devices
-rw-r--r--fs/bcachefs/clock_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/clock_types.h b/fs/bcachefs/clock_types.h
index bfd4b3030e35..df404b6dd3fe 100644
--- a/fs/bcachefs/clock_types.h
+++ b/fs/bcachefs/clock_types.h
@@ -3,7 +3,7 @@
#include "util.h"
-#define NR_IO_TIMERS 8
+#define NR_IO_TIMERS (BCH_SB_MEMBERS_MAX * 3)
/*
* Clocks/timers in units of sectors of IO: