Commit 7df0b26
scsi: qedf: Add synchronization between I/O completions and abort
Avoid race condition between I/O completion and abort processing by
protecting the cmd_type with the rport lock.
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Link: https://lore.kernel.org/r/20230901060646.27885-1-skashyap@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 5c584fe commit 7df0b26
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1904 | 1904 | | |
1905 | 1905 | | |
1906 | 1906 | | |
| 1907 | + | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | 1910 | | |
1910 | 1911 | | |
1911 | 1912 | | |
1912 | 1913 | | |
1913 | 1914 | | |
| 1915 | + | |
1914 | 1916 | | |
1915 | 1917 | | |
1916 | 1918 | | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
1917 | 1923 | | |
1918 | 1924 | | |
1919 | 1925 | | |
1920 | 1926 | | |
1921 | 1927 | | |
1922 | 1928 | | |
1923 | | - | |
1924 | | - | |
1925 | 1929 | | |
1926 | 1930 | | |
1927 | 1931 | | |
| |||
2210 | 2214 | | |
2211 | 2215 | | |
2212 | 2216 | | |
| 2217 | + | |
2213 | 2218 | | |
| 2219 | + | |
2214 | 2220 | | |
2215 | 2221 | | |
2216 | 2222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2805 | 2805 | | |
2806 | 2806 | | |
2807 | 2807 | | |
| 2808 | + | |
| 2809 | + | |
2808 | 2810 | | |
2809 | 2811 | | |
2810 | 2812 | | |
| |||
2838 | 2840 | | |
2839 | 2841 | | |
2840 | 2842 | | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
2841 | 2846 | | |
2842 | 2847 | | |
2843 | 2848 | | |
2844 | 2849 | | |
2845 | | - | |
| 2850 | + | |
2846 | 2851 | | |
2847 | 2852 | | |
2848 | 2853 | | |
| |||
0 commit comments