| .. | .. |
|---|
| 540 | 540 | struct scatterlist *t_prot_sg; |
|---|
| 541 | 541 | unsigned int t_prot_nents; |
|---|
| 542 | 542 | 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 | + */ |
|---|
| 544 | 548 | int cpuid; |
|---|
| 545 | 549 | }; |
|---|
| 546 | 550 | |
|---|
| .. | .. |
|---|
| 761 | 765 | struct config_group scsi_lu_group; |
|---|
| 762 | 766 | }; |
|---|
| 763 | 767 | |
|---|
| 768 | +struct se_device_queue { |
|---|
| 769 | + struct list_head state_list; |
|---|
| 770 | + spinlock_t lock; |
|---|
| 771 | +}; |
|---|
| 772 | + |
|---|
| 764 | 773 | struct se_device { |
|---|
| 765 | 774 | /* RELATIVE TARGET PORT IDENTIFER Counter */ |
|---|
| 766 | 775 | u16 dev_rpti_counter; |
|---|
| .. | .. |
|---|
| 794 | 803 | atomic_t dev_qf_count; |
|---|
| 795 | 804 | u32 export_count; |
|---|
| 796 | 805 | spinlock_t delayed_cmd_lock; |
|---|
| 797 | | - spinlock_t execute_task_lock; |
|---|
| 798 | 806 | spinlock_t dev_reservation_lock; |
|---|
| 799 | 807 | unsigned int dev_reservation_flags; |
|---|
| 800 | 808 | #define DRF_SPC2_RESERVATIONS 0x00000001 |
|---|
| .. | .. |
|---|
| 814 | 822 | struct work_struct qf_work_queue; |
|---|
| 815 | 823 | struct work_struct delayed_cmd_work; |
|---|
| 816 | 824 | struct list_head delayed_cmd_list; |
|---|
| 817 | | - struct list_head state_list; |
|---|
| 818 | 825 | struct list_head qf_cmd_list; |
|---|
| 819 | 826 | /* Pointer to associated SE HBA */ |
|---|
| 820 | 827 | struct se_hba *se_hba; |
|---|
| .. | .. |
|---|
| 841 | 848 | /* For se_lun->lun_se_dev RCU read-side critical access */ |
|---|
| 842 | 849 | u32 hba_index; |
|---|
| 843 | 850 | struct rcu_head rcu_head; |
|---|
| 851 | + int queue_cnt; |
|---|
| 852 | + struct se_device_queue *queues; |
|---|
| 853 | + struct mutex lun_reset_mutex; |
|---|
| 844 | 854 | }; |
|---|
| 845 | 855 | |
|---|
| 846 | 856 | struct se_hba { |
|---|