summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/scsi/targets/sd.c
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/common/io/scsi/targets/sd.c
parentbcb78a453dcc6eaa7c33432fac3626514e243154 (diff)
downloadillumos-gate-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/common/io/scsi/targets/sd.c')
-rw-r--r--usr/src/uts/common/io/scsi/targets/sd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/scsi/targets/sd.c b/usr/src/uts/common/io/scsi/targets/sd.c
index d29362d125..539a7895c6 100644
--- a/usr/src/uts/common/io/scsi/targets/sd.c
+++ b/usr/src/uts/common/io/scsi/targets/sd.c
@@ -13389,7 +13389,7 @@ sd_mapblocksize_iodone(int index, struct sd_lun *un, struct buf *bp)
* with the shadow buf at that point.
*/
if (taskq_dispatch(sd_wmr_tq, sd_read_modify_write_task, bp,
- KM_NOSLEEP) != 0) {
+ KM_NOSLEEP) != TASKQID_INVALID) {
/*
* Dispatch was successful so we are done. Return
* without going any higher up the iodone chain. Do
@@ -18716,7 +18716,7 @@ sd_sense_key_unit_attention(struct sd_lun *un, uint8_t *sense_datap,
#ifdef _LP64
if (un->un_blockcount + 1 > SD_GROUP1_MAX_ADDRESS) {
if (taskq_dispatch(sd_tq, sd_reenable_dsense_task,
- un, KM_NOSLEEP) == 0) {
+ un, KM_NOSLEEP) == TASKQID_INVALID) {
/*
* If we can't dispatch the task we'll just
* live without descriptor sense. We can
@@ -18747,7 +18747,7 @@ sd_sense_key_unit_attention(struct sd_lun *un, uint8_t *sense_datap,
* encountered at a later time.)
*/
if (taskq_dispatch(sd_tq, sd_media_change_task, pktp,
- KM_NOSLEEP) == 0) {
+ KM_NOSLEEP) == TASKQID_INVALID) {
/*
* Cannot dispatch the request so fail the command.
*/
@@ -18793,7 +18793,7 @@ sd_sense_key_unit_attention(struct sd_lun *un, uint8_t *sense_datap,
((asc == 0x2a) && (ascq == 0x01)) ||
((asc == 0x3f) && (ascq == 0x0e))) {
if (taskq_dispatch(sd_tq, sd_target_change_task, un,
- KM_NOSLEEP) == 0) {
+ KM_NOSLEEP) == TASKQID_INVALID) {
SD_ERROR(SD_LOG_ERROR, un,
"sd_sense_key_unit_attention: "
"Could not dispatch sd_target_change_task\n");