On 08/13/2013 06:31 AM, NeilBrown wrote: > On Mon, 12 Aug 2013 18:33:49 +0200 Jack Wang <jinpu.wang@xxxxxxxxxxxxxxxx> > wrote: > >> Hi Neil, >> >> >> We've found md hang in our test, it's easy to reproduce with script >> attached. >> >> We've tried 3.4 stable kernel and latest mainline, it still exists. >> >> Looks like flush bdi_writeback_workfn race with md_stop, no idea how to >> fix it, could you kindly give us suggestions? >> >> Best regards, >> Jack > > Thanks for the report. I can see how that deadlock could happen. > > Can you please try this patch and confirm that it fixes it. > I'm not really happy with this approach but nothing better occurs to me yet. > > NeilBrown > Hi Neil, Thanks for quick fix, I tested on 3.4 stable and mainline, it works now. Could you give more description about the bug and fix. Regards, Jack -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html