Date: Fri, 22 Sep 2006 17:09:12 GMT From: Matt Jacob <mjacob@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 106510 for review Message-ID: <200609221709.k8MH9C4O038926@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106510 Change 106510 by mjacob@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609221709.k8MH9C4O038926>