Chris Rankin wrote: > --- Tejun Heo wrote: >> So, we can fix the problem Chris is seeing by breaking module unload (by >> allowing it to unload too early). It doesn't sound too hot but module >> unloading race is much less likely than sysfs node deletion/open race. > > Yikes! Just temporary breakage, I hope :-)!! The only modules I unload on a regular basis these > days are things like "microcode", which the init scripts take care of as part of the boot-up > process. Okay, here's a half-assed fix. With this patch applied, if you try to unload a module while you're opening it's dev attribute, kernel will oops later when the file is accessed or closed later but it should fix the bug winecfg triggers. I really dunno how to fix this the right way in the stable kernel. Better ideas? Anyone? -- tejun