Commit c8fd0d3
ceph: handle race between vmtruncate and queuing cap snap
It's possible that we create a cap snap while there is pending
vmtruncate (truncate hasn't been processed by worker thread).
We should truncate dirty pages beyond capsnap->size in that case.
Signed-off-by: "Yan, Zheng" <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>1 parent fa0aa3b commit c8fd0d3
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1833 | 1833 | | |
1834 | 1834 | | |
1835 | 1835 | | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
1836 | 1845 | | |
1837 | 1846 | | |
1838 | | - | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
1839 | 1850 | | |
1840 | 1851 | | |
1841 | 1852 | | |
| |||
0 commit comments