Re: [RFC] PCI device list locking - take 2

Chris Wright (chris@wirex.com)
Wed, 18 Jun 2003 17:20:07 -0700


* Greg KH (greg@kroah.com) wrote:
> On Wed, Jun 18, 2003 at 04:32:37PM -0700, Chris Wright wrote:
> > I'm not sure testing a valid ->next makes sense. It could be non-NULL,
> > but poison, or if it was using list_del_init, it would be stuck in loop.
>
> When we take the devices off of the list, after list_del(), still under
> the lock, we can null out the list pointers. Then, later under the
> lock, we can check the pointer before we move to it. We aren't doing
> fancy list_* functions with the pci device lists at all.

Ah, ok, that should work.

thanks,
-chris

-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/