How is supposed to be protected the units list?
attilio at freebsd.org
Tue Mar 30 14:43:55 UTC 2010
2010/3/30 Matthew Jacob <mj at feral.com>:
> I was distracted yesterday so didn't finish my testing.
> There are still lots of issues that can occur. I'm still forming some
> thoughts on this, but part of the problem is that there are things going on
> with a periph that make this difficult. Pieces of it can change or be
> changed- even under a lock- but the code surrounding the lock isn't aware
> that it can change *between* the lock. For example, I think that cam_periph
> alloc can have two different arrivals of something which could be for the
> same periph can end up with two different periph structures on the list with
> different unit numbers that point to the same bus. It doesn't matter that
> there were locks to provide some stability because the locks were dropped in
May you please refer precisely to current code snippets (in terms of
functions, file, line, etc) in order to better explain this and the
other issues, when you have time?
Peace can only be achieved by understanding - A. Einstein
More information about the freebsd-scsi