diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-17 01:38:57 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-05-17 02:36:19 -0400 |
commit | ff86d4722124c300c40b85b6eb8ef2d410ab303c (patch) | |
tree | 05e54b0bf6397ecbb5e7717a7925ac6ed2645a68 /libbcachefs/movinggc.c | |
parent | 800408be11898f6d53ceecfd894cce8860fda26a (diff) |
Update bcachefs sources to 0906b1fb49 bcachefs: fixes for 32 bit/big endian machines
Diffstat (limited to 'libbcachefs/movinggc.c')
-rw-r--r-- | libbcachefs/movinggc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbcachefs/movinggc.c b/libbcachefs/movinggc.c index 28dabca7..7bef4561 100644 --- a/libbcachefs/movinggc.c +++ b/libbcachefs/movinggc.c @@ -241,7 +241,8 @@ static int bch2_copygc_thread(void *arg) ca->mi.bucket_size; if (available > reserve) { next = last + available - reserve; - bch2_kthread_io_clock_wait(clock, next); + bch2_kthread_io_clock_wait(clock, next, + MAX_SCHEDULE_TIMEOUT); continue; } @@ -252,7 +253,8 @@ static int bch2_copygc_thread(void *arg) fragmented = usage.sectors_fragmented; if (fragmented < reserve) { next = last + reserve - fragmented; - bch2_kthread_io_clock_wait(clock, next); + bch2_kthread_io_clock_wait(clock, next, + MAX_SCHEDULE_TIMEOUT); continue; } |