summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-03-20 17:29:38 +0200
committerToomas Soome <tsoome@me.com>2019-03-28 16:47:03 +0200
commitfc8ae2ec4282de7ec96f48e11078345f3dc0ac3d (patch)
tree3c41e9c5ecf5f5c172efd2216f79327fd2ad2be5 /usr/src/uts/sun4v
parentbcb78a453dcc6eaa7c33432fac3626514e243154 (diff)
downloadillumos-joyent-fc8ae2ec4282de7ec96f48e11078345f3dc0ac3d.tar.gz
10573 define TASKQID_INVALID as (taskq_id)0
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/sun4v')
-rw-r--r--usr/src/uts/sun4v/io/ds_drv.c4
-rw-r--r--usr/src/uts/sun4v/io/vdc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/sun4v/io/ds_drv.c b/usr/src/uts/sun4v/io/ds_drv.c
index 34caf542d0..2b2ba29e52 100644
--- a/usr/src/uts/sun4v/io/ds_drv.c
+++ b/usr/src/uts/sun4v/io/ds_drv.c
@@ -408,7 +408,7 @@ ds_init()
int
ds_sys_dispatch_func(void (func)(void *), void *arg)
{
- return (DS_DISPATCH(func, arg) == NULL);
+ return (DS_DISPATCH(func, arg) == TASKQID_INVALID);
}
/*
@@ -758,7 +758,7 @@ ds_log_add_msg(int32_t dest, uint8_t *msg, size_t sz)
DS_DBG_LOG(CE_NOTE, "%s: log exceeded %d bytes, scheduling"
" a purge...", __func__, DS_LOG_LIMIT);
- if (DS_DISPATCH(ds_log_purge, NULL) == NULL) {
+ if (DS_DISPATCH(ds_log_purge, NULL) == TASKQID_INVALID) {
cmn_err(CE_NOTE, "%s: purge thread failed to start",
__func__);
}
diff --git a/usr/src/uts/sun4v/io/vdc.c b/usr/src/uts/sun4v/io/vdc.c
index 77619e38fe..ccea7403ea 100644
--- a/usr/src/uts/sun4v/io/vdc.c
+++ b/usr/src/uts/sun4v/io/vdc.c
@@ -1342,7 +1342,7 @@ vdc_open(dev_t *dev, int flag, int otyp, cred_t *cred)
/* call vdc_validate() asynchronously to avoid blocking */
if (taskq_dispatch(system_taskq, vdc_validate_task,
- (void *)vdc, TQ_NOSLEEP) == NULL) {
+ (void *)vdc, TQ_NOSLEEP) == TASKQID_INVALID) {
vdc_mark_closed(vdc, slice, flag, otyp);
mutex_exit(&vdc->lock);
return (ENXIO);
@@ -7572,7 +7572,7 @@ vd_process_ioctl(dev_t dev, int cmd, caddr_t arg, int mode, int *rvalp)
/* put the request on a task queue */
rv = taskq_dispatch(system_taskq, vdc_dkio_flush_cb,
(void *)dkarg, DDI_SLEEP);
- if (rv == NULL) {
+ if (rv == TASKQID_INVALID) {
/* clean up if dispatch fails */
mutex_enter(&vdc->lock);
vdc->dkio_flush_pending--;