Commit 97503a8
ata: libata-scsi: refactor ata_scsi_translate()
commit bb3a815 upstream.
Factor out of ata_scsi_translate() the code handling queued command
deferral using the port qc_defer callback and issuing the queued
command with ata_qc_issue() into the new function ata_scsi_qc_issue(),
and simplify the goto used in ata_scsi_translate().
While at it, also add a lockdep annotation to check that the port lock
is held when ata_scsi_translate() is called.
No functional changes.
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Igor Pylypiv <ipylypiv@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 51680e9 commit 97503a8
1 file changed
+50
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1739 | 1775 | | |
1740 | 1776 | | |
1741 | 1777 | | |
| |||
1759 | 1795 | | |
1760 | 1796 | | |
1761 | 1797 | | |
1762 | | - | |
1763 | | - | |
| 1798 | + | |
| 1799 | + | |
1764 | 1800 | | |
1765 | 1801 | | |
1766 | 1802 | | |
1767 | 1803 | | |
1768 | 1804 | | |
1769 | 1805 | | |
1770 | | - | |
1771 | 1806 | | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
1772 | 1813 | | |
1773 | 1814 | | |
1774 | | - | |
| 1815 | + | |
1775 | 1816 | | |
1776 | 1817 | | |
1777 | 1818 | | |
1778 | 1819 | | |
1779 | 1820 | | |
1780 | 1821 | | |
1781 | | - | |
| 1822 | + | |
| 1823 | + | |
1782 | 1824 | | |
1783 | 1825 | | |
1784 | 1826 | | |
1785 | | - | |
1786 | 1827 | | |
1787 | 1828 | | |
1788 | 1829 | | |
1789 | 1830 | | |
1790 | 1831 | | |
1791 | 1832 | | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
| 1833 | + | |
1801 | 1834 | | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
| 1835 | + | |
1808 | 1836 | | |
1809 | | - | |
| 1837 | + | |
1810 | 1838 | | |
1811 | | - | |
1812 | 1839 | | |
1813 | | - | |
1814 | 1840 | | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | 1841 | | |
1823 | 1842 | | |
1824 | 1843 | | |
| |||
0 commit comments