aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_backend.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-02-21 21:45:14 +0000
committerAlexander Motin <mav@FreeBSD.org>2021-02-21 21:52:33 +0000
commit2c7dc6bae9fd5c2fa0a65768df8e4e99c2f159f1 (patch)
treec727a27cfe1c2b577d0591c1cb0fdb576d93602a /sys/cam/ctl/ctl_backend.h
parent1158508a8086a1a93492c1a2e22b61cd7fee4ec7 (diff)
downloadsrc-2c7dc6bae9fd5c2fa0a65768df8e4e99c2f159f1.tar.gz
src-2c7dc6bae9fd5c2fa0a65768df8e4e99c2f159f1.zip
Refactor CTL datamove KPI.
- Make frontends call unified CTL core method ctl_datamove_done() to report move completion. It allows to reduce code duplication in differerent backends by accounting DMA time in common code. - Add to ctl_datamove_done() and be_move_done() callback samethr argument, reporting whether the callback is called in the same context as ctl_datamove(). It allows for some cases like iSCSI write with immediate data or camsim frontend write save one context switch, since we know that the context is sleepable. - Remove data_move_done() methods from struct ctl_backend_driver, unused since forever. MFC after: 1 month
Diffstat (limited to 'sys/cam/ctl/ctl_backend.h')
-rw-r--r--sys/cam/ctl/ctl_backend.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_backend.h b/sys/cam/ctl/ctl_backend.h
index be8ab4d1706b..05e65abe41f8 100644
--- a/sys/cam/ctl/ctl_backend.h
+++ b/sys/cam/ctl/ctl_backend.h
@@ -186,7 +186,6 @@ struct ctl_backend_driver {
be_init_t init; /* passed to CTL */
be_shutdown_t shutdown; /* passed to CTL */
be_func_t data_submit; /* passed to CTL */
- be_func_t data_move_done; /* passed to CTL */
be_func_t config_read; /* passed to CTL */
be_func_t config_write; /* passed to CTL */
be_ioctl_t ioctl; /* passed to CTL */