Commit 08f7843
scsi: Make scsi_mq_prep_fn() call scsi_init_command()
This patch reduces code duplication. There are two functional changes in
this patch:
- It causes scsi_mq_prep_fn() to clear driver-private command data, just
like the already upstream commit 1bad6c4 ("scsi: zero per-cmd
private driver data for each MQ I/O").
- The initialization of .prot_sdb is moved from scsi_mq_prep_fn() into
scsi_init_request().
[mkp: applied by hand]
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent be4c186 commit 08f7843
1 file changed
+9
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
1874 | | - | |
1875 | | - | |
1876 | 1874 | | |
1877 | 1875 | | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
| 1876 | + | |
1881 | 1877 | | |
1882 | 1878 | | |
1883 | 1879 | | |
1884 | 1880 | | |
1885 | | - | |
1886 | | - | |
1887 | | - | |
1888 | 1881 | | |
1889 | 1882 | | |
1890 | | - | |
1891 | 1883 | | |
1892 | 1884 | | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
1899 | 1885 | | |
1900 | 1886 | | |
1901 | 1887 | | |
1902 | 1888 | | |
1903 | | - | |
1904 | 1889 | | |
1905 | 1890 | | |
1906 | 1891 | | |
| |||
2026 | 2011 | | |
2027 | 2012 | | |
2028 | 2013 | | |
| 2014 | + | |
2029 | 2015 | | |
2030 | 2016 | | |
2031 | 2017 | | |
| |||
2034 | 2020 | | |
2035 | 2021 | | |
2036 | 2022 | | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2037 | 2030 | | |
2038 | 2031 | | |
2039 | 2032 | | |
| |||
0 commit comments