Re: Can't register existing backing devices anymore
From: Jorg Bornschein <hidden>
Date: 2017-08-24 21:02:02
From: Jorg Bornschein <hidden>
Date: 2017-08-24 21:02:02
August 24, 2017 9:37 PM, "Eric Wheeler" [off-list ref] wrote:
quoted
A fast fix can be:@@ -404,7 +404,8 @@ long bch_bucket_alloc(struct cache *ca, unsignedreserve, bool wait) finish_wait(&ca->set->bucket_wait, &w); out: - wake_up_process(ca->alloc_thread); + if (ca->alloc_thread) + wake_up_process(ca->alloc_thread); trace_bcache_alloc(ca, reserve); But for a proper fix, we should not open user space access interface before necessary resources are ready.Great catch! Jorg, does this fix it?
Hi! I hopefully find some time over the weekend and try it -- it's a bit painful because the machine is headless and I have to move a monitor around to see the results... j