diff options
| author | Scott Long <scottl@FreeBSD.org> | 2005-02-09 11:50:16 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2005-02-09 11:50:16 +0000 |
| commit | 29c711f038099b5830817cc9a3f85a6cfc9e53c4 (patch) | |
| tree | 8f200ed22edc66aab4804dc5eab0d53ccb0684ef /sys/dev | |
| parent | ef3cf714a4c72157213a456243bf91c0a40aad13 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/aac/aac_cam.c | 5 | ||||
| -rw-r--r-- | sys/dev/amr/amr_cam.c | 8 |
2 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 3755e58de7423..8423f44d0ff59 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -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; } diff --git a/sys/dev/amr/amr_cam.c b/sys/dev/amr/amr_cam.c index a342699c61920..fb51eb92a0b42 100644 --- a/sys/dev/amr/amr_cam.c +++ b/sys/dev/amr/amr_cam.c @@ -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); } |
