Hey Coly-- On 10/14/2017 09:22 AM, Coly Li wrote: > On 2017/10/14 下午8:04, Sverd Johnsen wrote: >> Yes. bcache-tools ships some udev rules associated helper utils that >> are used here. >> > > Hi Sverd, > > Is it possible for you to test the attached patch ? This is an effort to > avoid NULL dereference issue, let's try whether it works. > > Thanks in advance. > > Coly Li It looks like in the patch that you move some kobject_init's around and it's a better factoring. But for the sysfs to be accessed when the structures aren't available, doesn't it have to be after the kobject_adds, which is much later? Isn't this reported issue is the thing that you fixed earlier in "bcache: check ca->alloc_thread initialized before wake up it" ? It seems like we have a lot of issues with bringing up devices and tearing them down/detaching. Mike -- 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