summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2006-11-02 23:18:25 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2006-11-02 23:18:25 +0000
commitd993cb4daf5c3439f11622b8eb8f788dba69916b (patch)
tree640f355aad34168eced295df48911b1765598124
parent84d67ea566c0caa9b6ce5ca1254163d02a11ad2d (diff)
Notes
-rw-r--r--sys/dev/mpt/mpt_raid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mpt/mpt_raid.c b/sys/dev/mpt/mpt_raid.c
index 7448572ad981..d51a0eef8150 100644
--- a/sys/dev/mpt/mpt_raid.c
+++ b/sys/dev/mpt/mpt_raid.c
@@ -1595,16 +1595,19 @@ mpt_raid_set_vol_queue_depth(struct mpt_softc *mpt, u_int vol_queue_depth)
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);