Commit 4dad7ef
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 8e34607 commit 4dad7ef
1 file changed
Lines changed: 50 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1691 | 1691 | | |
1692 | 1692 | | |
1693 | 1693 | | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1694 | 1730 | | |
1695 | 1731 | | |
1696 | 1732 | | |
| |||
1714 | 1750 | | |
1715 | 1751 | | |
1716 | 1752 | | |
1717 | | - | |
1718 | | - | |
| 1753 | + | |
| 1754 | + | |
1719 | 1755 | | |
1720 | 1756 | | |
1721 | 1757 | | |
1722 | 1758 | | |
1723 | 1759 | | |
1724 | 1760 | | |
1725 | | - | |
1726 | 1761 | | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
1727 | 1768 | | |
1728 | 1769 | | |
1729 | | - | |
| 1770 | + | |
1730 | 1771 | | |
1731 | 1772 | | |
1732 | 1773 | | |
1733 | 1774 | | |
1734 | 1775 | | |
1735 | 1776 | | |
1736 | | - | |
| 1777 | + | |
| 1778 | + | |
1737 | 1779 | | |
1738 | 1780 | | |
1739 | 1781 | | |
1740 | | - | |
1741 | 1782 | | |
1742 | 1783 | | |
1743 | 1784 | | |
1744 | 1785 | | |
1745 | 1786 | | |
1746 | 1787 | | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
1750 | | - | |
1751 | | - | |
1752 | | - | |
1753 | | - | |
1754 | | - | |
1755 | | - | |
| 1788 | + | |
1756 | 1789 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
| 1790 | + | |
1763 | 1791 | | |
1764 | | - | |
| 1792 | + | |
1765 | 1793 | | |
1766 | | - | |
1767 | 1794 | | |
1768 | | - | |
1769 | 1795 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | 1796 | | |
1778 | 1797 | | |
1779 | 1798 | | |
| |||
0 commit comments