We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a69fa6 commit aed4ccbCopy full SHA for aed4ccb
fs/bcachefs/journal_io.c
@@ -19,6 +19,7 @@
19
20
#include <linux/ioprio.h>
21
#include <linux/string_choices.h>
22
+#include <linux/sched/sysctl.h>
23
24
void bch2_journal_pos_from_member_info_set(struct bch_fs *c)
25
{
@@ -1262,7 +1263,8 @@ int bch2_journal_read(struct bch_fs *c,
1262
1263
degraded = true;
1264
}
1265
- closure_sync(&jlist.cl);
1266
+ while (closure_sync_timeout(&jlist.cl, sysctl_hung_task_timeout_secs * HZ / 2))
1267
+ ;
1268
1269
if (jlist.ret)
1270
return jlist.ret;
0 commit comments