aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha/aha.c
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2007-04-15 08:49:19 +0000
committerScott Long <scottl@FreeBSD.org>2007-04-15 08:49:19 +0000
commit2b83592fdcb9e7c201677f3605b9e8738a6b0737 (patch)
tree010146772b36d16e6f98671b4bed7ce094acd633 /sys/dev/aha/aha.c
parent4f450d951a7b14cda1b359646ec580a82b4f012e (diff)
downloadsrc-2b83592fdcb9e7c201677f3605b9e8738a6b0737.tar.gz
src-2b83592fdcb9e7c201677f3605b9e8738a6b0737.zip
Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM will
use to synchornize and protect all data objects that are used for that SIM. Drivers that are not yet MPSAFE register Giant and operate as usual. RIght now, no drivers are MPSAFE, though a few will be changed in the coming week as this work settles down. The driver API has changed, so all CAM drivers will need to be recompiled. The userland API has not changed, so tools like camcontrol do not need to be recompiled.
Notes
Notes: svn path=/head/; revision=168752
Diffstat (limited to 'sys/dev/aha/aha.c')
-rw-r--r--sys/dev/aha/aha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index 714c1bb9aee9..b52b201b47ca 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -605,8 +605,8 @@ aha_attach(struct aha_softc *aha)
/*
* Construct our SIM entry
*/
- aha->sim = cam_sim_alloc(ahaaction, ahapoll, "aha", aha, aha->unit, 2,
- tagged_dev_openings, devq);
+ aha->sim = cam_sim_alloc(ahaaction, ahapoll, "aha", aha, aha->unit,
+ &Giant, 2, tagged_dev_openings, devq);
if (aha->sim == NULL) {
cam_simq_free(devq);
return (ENOMEM);