freebsd-skq/sys/dev/aac
attilio 7f42e47a67 Make the newbus subsystem Giant free by adding the new newbus sxlock.
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra <giovanni dot trematerra at gmail dot com>,
                Brandon Gooch <jamesbrandongooch at gmail dot com>
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
2009-08-02 14:28:40 +00:00
..
aac_cam.c Diff reduction to Adaptec's driver (around build 15317): catch up with a 2008-03-24 19:23:33 +00:00
aac_debug.c Sync with the official Adaptec vendor driver: 2009-02-21 15:40:03 +00:00
aac_disk.c Get correct maxio from the controller and drop the tunable. 2009-07-11 08:10:18 +00:00
aac_linux.c On amd64 platform, use linux32 headers so 32-bit Linux applications 2006-12-20 17:10:53 +00:00
aac_pci.c Sync with the official Adaptec vendor driver: 2009-02-21 15:40:03 +00:00
aac_tables.h
aac.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
aacreg.h Sync with the official Adaptec vendor driver: 2009-02-21 15:40:03 +00:00
aacvar.h Sync with the official Adaptec vendor driver: 2009-02-21 15:40:03 +00:00