August 24, 2017 9:37 PM, "Eric Wheeler" <bcache@xxxxxxxxxxxxxxxxxx> wrote: >> A fast fix can be: >> @@ -404,7 +404,8 @@ long bch_bucket_alloc(struct cache *ca, unsigned >> reserve, 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 -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html