Commit 4895009
scsi: qla2xxx: Prevent command send on chip reset
Currently IOCBs are allowed to push through while chip reset could be in
progress. During chip reset the outstanding_cmds array is cleared
twice. Once when any command on this array is returned as failed and
secondly when the array is initialize to zero. If a command is inserted on
to the array between these intervals, then the command will be lost. Check
for chip reset before sending IOCB.
Cc: stable@vger.kernel.org
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Link: https://lore.kernel.org/r/20240227164127.36465-2-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 517bcc2 commit 4895009
2 files changed
Lines changed: 37 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1198 | 1202 | | |
1199 | 1203 | | |
1200 | 1204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2587 | 2587 | | |
2588 | 2588 | | |
2589 | 2589 | | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
2590 | 2617 | | |
2591 | 2618 | | |
2592 | 2619 | | |
| |||
2692 | 2719 | | |
2693 | 2720 | | |
2694 | 2721 | | |
2695 | | - | |
| 2722 | + | |
2696 | 2723 | | |
2697 | 2724 | | |
2698 | 2725 | | |
| |||
2747 | 2774 | | |
2748 | 2775 | | |
2749 | 2776 | | |
| 2777 | + | |
2750 | 2778 | | |
2751 | 2779 | | |
2752 | 2780 | | |
| |||
2756 | 2784 | | |
2757 | 2785 | | |
2758 | 2786 | | |
| 2787 | + | |
2759 | 2788 | | |
2760 | 2789 | | |
2761 | 2790 | | |
| |||
3918 | 3947 | | |
3919 | 3948 | | |
3920 | 3949 | | |
3921 | | - | |
| 3950 | + | |
3922 | 3951 | | |
3923 | 3952 | | |
3924 | 3953 | | |
| |||
0 commit comments