mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
bcachefs: fix hung task timeout in journal read
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
7a69fa6571
commit
aed4ccbf45
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <linux/ioprio.h>
|
||||
#include <linux/string_choices.h>
|
||||
#include <linux/sched/sysctl.h>
|
||||
|
||||
void bch2_journal_pos_from_member_info_set(struct bch_fs *c)
|
||||
{
|
||||
|
|
@ -1262,7 +1263,8 @@ int bch2_journal_read(struct bch_fs *c,
|
|||
degraded = true;
|
||||
}
|
||||
|
||||
closure_sync(&jlist.cl);
|
||||
while (closure_sync_timeout(&jlist.cl, sysctl_hung_task_timeout_secs * HZ / 2))
|
||||
;
|
||||
|
||||
if (jlist.ret)
|
||||
return jlist.ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user