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/amr/amr_cam.c | |
parent | ef3cf714a4c72157213a456243bf91c0a40aad13 (diff) | |
download | src-29c711f038099b5830817cc9a3f85a6cfc9e53c4.tar.gz src-29c711f038099b5830817cc9a3f85a6cfc9e53c4.zip |
Remove the messy locking dance around xpt_done()
Notes
Notes:
svn path=/head/; revision=141567
Diffstat (limited to 'sys/dev/amr/amr_cam.c')
-rw-r--r-- | sys/dev/amr/amr_cam.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/amr/amr_cam.c b/sys/dev/amr/amr_cam.c index a342699c6192..fb51eb92a0b4 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); } |