diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-31 18:21:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-05-31 18:21:45 +0000 |
commit | 7ef27c53aee23663bb2e768d713be7918fdd0c6b (patch) | |
tree | 703d57023af9e86ef95a866512706950acd1e3c8 /sys/scsi/scsiconf.h | |
parent | dde314a98b660e9231a4c64ad9fd05332c111328 (diff) |
remove the scsi task thread, and replace it with the system workq.
"just :wq and do it" tedu@
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r-- | sys/scsi/scsiconf.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index b0c167a87e7..4823c6b492e 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.84 2007/04/10 17:47:56 miod Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.85 2007/05/31 18:21:44 dlg Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -52,6 +52,7 @@ #include <sys/queue.h> #include <sys/timeout.h> +#include <sys/workq.h> #include <machine/cpu.h> #include <scsi/scsi_debug.h> @@ -302,9 +303,11 @@ struct scsi_xfer { const void *scsi_inqmatch(struct scsi_inquiry_data *, const void *, int, int, int *); +#define scsi_task(_f, _a1, _a2, _fl) \ + workq_add_task(NULL, (_f), (_a1), (_a2), (_fl)) + void scsi_init(void); void scsi_deinit(void); -int scsi_task(void (*func)(void *, void *), void *, void *, int); struct scsi_xfer * scsi_get_xs(struct scsi_link *, int); void scsi_free_xs(struct scsi_xfer *, int); |