diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-21 01:24:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-21 01:24:28 +0100 |
commit | 27bba9c532a8d21050b94224ffd310ad0058c353 (patch) | |
tree | dd86189c05e965469389527b161a0db5c94ee0fc /include | |
parent | Merge tag 'block-5.10-2020-11-20' of git://git.kernel.dk/linux-block (diff) | |
parent | scsi: target: iscsi: Fix cmd abort fabric stop race (diff) | |
download | linux-27bba9c532a8d21050b94224ffd310ad0058c353.tar.xz linux-27bba9c532a8d21050b94224ffd310ad0058c353.zip |
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; |