hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/target/target_core_base.h
....@@ -540,7 +540,11 @@
540540 struct scatterlist *t_prot_sg;
541541 unsigned int t_prot_nents;
542542 sense_reason_t pi_err;
543
- sector_t bad_sector;
543
+ u64 sense_info;
544
+ /*
545
+ * CPU LIO will execute the cmd on. Defaults to the CPU the cmd is
546
+ * initialized on. Drivers can override.
547
+ */
544548 int cpuid;
545549 };
546550
....@@ -761,6 +765,11 @@
761765 struct config_group scsi_lu_group;
762766 };
763767
768
+struct se_device_queue {
769
+ struct list_head state_list;
770
+ spinlock_t lock;
771
+};
772
+
764773 struct se_device {
765774 /* RELATIVE TARGET PORT IDENTIFER Counter */
766775 u16 dev_rpti_counter;
....@@ -794,7 +803,6 @@
794803 atomic_t dev_qf_count;
795804 u32 export_count;
796805 spinlock_t delayed_cmd_lock;
797
- spinlock_t execute_task_lock;
798806 spinlock_t dev_reservation_lock;
799807 unsigned int dev_reservation_flags;
800808 #define DRF_SPC2_RESERVATIONS 0x00000001
....@@ -814,7 +822,6 @@
814822 struct work_struct qf_work_queue;
815823 struct work_struct delayed_cmd_work;
816824 struct list_head delayed_cmd_list;
817
- struct list_head state_list;
818825 struct list_head qf_cmd_list;
819826 /* Pointer to associated SE HBA */
820827 struct se_hba *se_hba;
....@@ -841,6 +848,9 @@
841848 /* For se_lun->lun_se_dev RCU read-side critical access */
842849 u32 hba_index;
843850 struct rcu_head rcu_head;
851
+ int queue_cnt;
852
+ struct se_device_queue *queues;
853
+ struct mutex lun_reset_mutex;
844854 };
845855
846856 struct se_hba {