diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-20 16:24:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-20 16:24:28 -0800 |
commit | 27bba9c532a8d21050b94224ffd310ad0058c353 (patch) | |
tree | dd86189c05e965469389527b161a0db5c94ee0fc /include | |
parent | 4fd84bc9692958cd07b3a3320dba26baa04a17d0 (diff) | |
parent | f36199355c64a39fe82cfddc7623d827c7e050da (diff) |
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley:
"Fixes for two fairly obscure but annoying when triggered races in
iSCSI"
* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: target: iscsi: Fix cmd abort fabric stop race
scsi: libiscsi: Fix NOP race condition
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/libiscsi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index c25fb86ffae9..b3bbd10eb3f0 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h @@ -132,6 +132,9 @@ struct iscsi_task { void *dd_data; /* driver/transport data */ }; +/* invalid scsi_task pointer */ +#define INVALID_SCSI_TASK (struct iscsi_task *)-1l + static inline int iscsi_task_has_unsol_data(struct iscsi_task *task) { return task->unsol_r2t.data_length > task->unsol_r2t.sent; |