summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/nsp32_io.h
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2017-06-14 13:52:43 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-28 03:28:04 +0200
commit6d311fa7d2c18659d040b9beba5e41fe24c2a6f5 (patch)
treeb5bbaaeaa6bb080b2687787f05dd057f574d91bc /drivers/scsi/nsp32_io.h
parentscsi: qla2xxx: Update Driver version to 10.00.00.00-k (diff)
downloadlinux-6d311fa7d2c18659d040b9beba5e41fe24c2a6f5.tar.xz
linux-6d311fa7d2c18659d040b9beba5e41fe24c2a6f5.zip
scsi: sas: scsi_queue_work can fail, so make callers aware
libsas uses scsi_queue_work() to queue its internal event notifications. scsi_queue_work() can return -EINVAL if the work queue doesn't exist and it does call queue_work() which can return false if the work is already queued. Make the SAS event code capable of returning errors up to the caller, which is handy when changing to dynamically allocated work in libsas as well, as discussed here: https://lkml.org/lkml/2017/6/14/121. [mkp: fixed typo] Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/nsp32_io.h')
0 files changed, 0 insertions, 0 deletions