Re: checkpatch, a patch checking script.

Alan Cox
2007-04-28T11:28:54Z

> > At least one way to handle BUG_ON() type situations more cleanly (for
> > some anyway) is to fake a hot-unplug/plug event. Thats something that
>
> That would have a high risk of deadlock on some lost lock.

Well I was assuming you'd code this up in the driver not arbitarily - and
you need to do that for IRQ anyway. So something like

writel(0xFFFFFFFF, &mdev->irq_mask);
pci_mark_failed(pdev, PCI_TRY_REPLUG|PCI_TRY_D3);
spin_unlock(&mylock);
return -EXPLODED;

with pci_mark_failed firing off any replug via a work queue

Alan