Commit c26b85e
scsi: pm80xx: Fix double completion for SATA devices
Current code handles completions for SATA devices in mpi_sata_completion()
and mpi_sata_event().
However, at the time when any SATA event happens, for almost all the event
types, the command is still in the target. It is therefore incorrect to
complete the task in sata_event().
There are some events for which we get sata_completions, some need recovery
procedure and others abort. All the tasks must be completed via
sata_completion() path.
Removed the task done related code from sata_events(). For tasks where we
don't get completions, let top layer call abort() to abort the command post
timeout.
Link: https://lore.kernel.org/r/20220124082255.86223-1-Ajish.Koshy@microchip.com
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Co-developed-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Ajish Koshy <Ajish.Koshy@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 4db0959 commit c26b85e
2 files changed
Lines changed: 0 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2692 | 2692 | | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | | - | |
2696 | 2695 | | |
2697 | 2696 | | |
2698 | 2697 | | |
| |||
2724 | 2723 | | |
2725 | 2724 | | |
2726 | 2725 | | |
2727 | | - | |
2728 | | - | |
2729 | 2726 | | |
2730 | 2727 | | |
2731 | 2728 | | |
| |||
2767 | 2764 | | |
2768 | 2765 | | |
2769 | 2766 | | |
2770 | | - | |
2771 | 2767 | | |
2772 | 2768 | | |
2773 | 2769 | | |
| |||
2853 | 2849 | | |
2854 | 2850 | | |
2855 | 2851 | | |
2856 | | - | |
2857 | | - | |
2858 | | - | |
2859 | | - | |
2860 | | - | |
2861 | | - | |
2862 | | - | |
2863 | | - | |
2864 | | - | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
2870 | 2852 | | |
2871 | 2853 | | |
2872 | 2854 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2821 | 2821 | | |
2822 | 2822 | | |
2823 | 2823 | | |
2824 | | - | |
2825 | 2824 | | |
2826 | 2825 | | |
2827 | 2826 | | |
| |||
2854 | 2853 | | |
2855 | 2854 | | |
2856 | 2855 | | |
2857 | | - | |
2858 | | - | |
2859 | 2856 | | |
2860 | 2857 | | |
2861 | 2858 | | |
| |||
2904 | 2901 | | |
2905 | 2902 | | |
2906 | 2903 | | |
2907 | | - | |
2908 | | - | |
2909 | | - | |
2910 | | - | |
2911 | | - | |
2912 | 2904 | | |
2913 | 2905 | | |
2914 | 2906 | | |
| |||
3008 | 3000 | | |
3009 | 3001 | | |
3010 | 3002 | | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
3016 | | - | |
3017 | | - | |
3018 | | - | |
3019 | | - | |
3020 | | - | |
3021 | | - | |
3022 | | - | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
3027 | | - | |
3028 | | - | |
3029 | 3003 | | |
3030 | 3004 | | |
3031 | 3005 | | |
| |||
0 commit comments