diff options
author | Alexander Motin <mav@FreeBSD.org> | 2012-05-12 13:55:36 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2012-05-12 13:55:36 +0000 |
commit | 711f661393c0f971d750a262d0548c9550f4a5bc (patch) | |
tree | d0c5e4b9d4ea67d48c8380b39bd48b3506eb73a4 /sys/dev/mvs | |
parent | 7af1242a34b8ebb993ee917a2dfb7fc7bbab60c8 (diff) | |
download | src-711f661393c0f971d750a262d0548c9550f4a5bc.tar.gz src-711f661393c0f971d750a262d0548c9550f4a5bc.zip |
Add two functions xpt_batch_start() and xpt_batch_done() to the CAM SIM KPI
to allow drivers to handle request completion directly without passing
them to the CAM SWI thread removing extra context switch.
Modify all ATA/SATA drivers to use them.
Reviewed by: gibbs, ken
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=235333
Diffstat (limited to 'sys/dev/mvs')
-rw-r--r-- | sys/dev/mvs/mvs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mvs/mvs.c b/sys/dev/mvs/mvs.c index e128616e7038..debe55af4b76 100644 --- a/sys/dev/mvs/mvs.c +++ b/sys/dev/mvs/mvs.c @@ -654,7 +654,9 @@ mvs_ch_intr_locked(void *data) struct mvs_channel *ch = device_get_softc(dev); mtx_lock(&ch->mtx); + xpt_batch_start(ch->sim); mvs_ch_intr(data); + xpt_batch_done(ch->sim); mtx_unlock(&ch->mtx); } |