Remove the messy locking dance around xpt_done()

This commit is contained in:
Scott Long 2005-02-09 11:50:16 +00:00
parent ef3cf714a4
commit 29c711f038
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141567
2 changed files with 0 additions and 13 deletions

View file

@ -495,12 +495,7 @@ aac_cam_complete(struct aac_command *cm)
}
aac_release_command(cm);
mtx_unlock(&sc->aac_io_lock);
mtx_lock(&Giant);
xpt_done(ccb);
mtx_unlock(&Giant);
mtx_lock(&sc->aac_io_lock);
return;
}

View file

@ -559,11 +559,7 @@ amr_cam_complete(struct amr_command *ac)
free(ap, M_DEVBUF);
if ((csio->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE)
debug(2, "%*D\n", imin(csio->dxfer_len, 16), csio->data_ptr, " ");
mtx_unlock(&sc->amr_io_lock);
mtx_lock(&Giant);
xpt_done((union ccb *)csio);
mtx_unlock(&Giant);
mtx_lock(&sc->amr_io_lock);
amr_releasecmd(ac);
}
@ -627,10 +623,6 @@ amr_cam_complete_extcdb(struct amr_command *ac)
free(aep, M_DEVBUF);
if ((csio->ccb_h.flags & CAM_DIR_MASK) != CAM_DIR_NONE)
debug(2, "%*D\n", imin(csio->dxfer_len, 16), csio->data_ptr, " ");
mtx_unlock(&sc->amr_io_lock);
mtx_lock(&Giant);
xpt_done((union ccb *)csio);
mtx_unlock(&Giant);
mtx_lock(&sc->amr_io_lock);
amr_releasecmd(ac);
}