PERFORCE change 106510 for review
Matt Jacob
mjacob at FreeBSD.org
Fri Sep 22 10:09:12 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106510
Change 106510 by mjacob at newisp on 2006/09/22 17:08:44
Add (bogus for now) 2CAM/FROMCAM locks.
Affected files ...
.. //depot/projects/newisp/dev/mpt/mpt_raid.c#2 edit
Differences ...
==== //depot/projects/newisp/dev/mpt/mpt_raid.c#2 (text+ko) ====
@@ -1595,16 +1595,19 @@
mpt->raid_rescan = 0;
+ MPTLOCK_2_CAMLOCK(mpt);
error = xpt_create_path(&path, xpt_periph,
cam_sim_path(mpt->sim),
mpt_vol->config_page->VolumeID,
/*lun*/0);
if (error != CAM_REQ_CMP) {
+ CAMLOCK_2_MPTLOCK(mpt);
mpt_vol_prt(mpt, mpt_vol, "Unable to allocate path!\n");
continue;
}
mpt_adjust_queue_depth(mpt, mpt_vol, path);
xpt_free_path(path);
+ CAMLOCK_2_MPTLOCK(mpt);
}
MPT_UNLOCK(mpt);
return (0);
More information about the p4-projects
mailing list