Commit ab60ca2
committed
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
jira LE-1907
Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2
commit-author Joe Thornber <ejt@redhat.com>
commit 1e4ab7b
When using the cleaner policy to decommission the cache, there is
never any writeback started from the cache as it is constantly delayed
due to normal I/O keeping the device busy. Meaning @idle=false was
always being passed to clean_target_met()
Fix this by adding a specific 'cleaner' flag that is set when the
cleaner policy is configured. This flag serves to always allow the
cleaner's writeback work to be queued until the cache is
decommissioned (even if the cache isn't idle).
Reported-by: David Jeffery <djeffery@redhat.com>
Fixes: b29d498 ("dm cache: significant rework to leverage dm-bio-prison-v2")
Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
(cherry picked from commit 1e4ab7b)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 2064a27 commit ab60ca2
1 file changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
858 | 864 | | |
859 | 865 | | |
860 | 866 | | |
| |||
1135 | 1141 | | |
1136 | 1142 | | |
1137 | 1143 | | |
1138 | | - | |
| 1144 | + | |
1139 | 1145 | | |
1140 | 1146 | | |
1141 | 1147 | | |
| |||
1718 | 1724 | | |
1719 | 1725 | | |
1720 | 1726 | | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1726 | 1730 | | |
1727 | 1731 | | |
1728 | 1732 | | |
| |||
1809 | 1813 | | |
1810 | 1814 | | |
1811 | 1815 | | |
| 1816 | + | |
1812 | 1817 | | |
1813 | 1818 | | |
1814 | 1819 | | |
| |||
1832 | 1837 | | |
1833 | 1838 | | |
1834 | 1839 | | |
1835 | | - | |
| 1840 | + | |
| 1841 | + | |
1836 | 1842 | | |
1837 | 1843 | | |
1838 | 1844 | | |
1839 | 1845 | | |
1840 | 1846 | | |
1841 | 1847 | | |
1842 | | - | |
| 1848 | + | |
| 1849 | + | |
1843 | 1850 | | |
1844 | 1851 | | |
1845 | 1852 | | |
1846 | 1853 | | |
1847 | 1854 | | |
1848 | 1855 | | |
1849 | | - | |
| 1856 | + | |
| 1857 | + | |
1850 | 1858 | | |
1851 | 1859 | | |
1852 | 1860 | | |
| |||
0 commit comments