Commit 9fdbbdb
dm-crypt: don't update io->sector after kcryptd_crypt_write_io_submit()
The updates of io->sector are the leftovers when dm-crypt allocated
pages for partial write request. However, since commit cf2f1ab
("dm crypt: don't allocate pages for a partial request"), there is no
partial request anymore.
After the introduction of write request rb-tree, the updates of
io->sectors may interfere the insertion procedure, because ->sectors of
these write requests which have already been added in the rb-tree may be
changed during the insertion of new write request.
Fix it by removing these buggy updates of io->sectors. Considering these
updates only effect the write request rb-tree, the commit which
introduces the write request rb-tree is used as the fix tag.
Fixes: b3c5fd3 ("dm crypt: sort writes")
Cc: [email protected]
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>1 parent 2f8c28d commit 9fdbbdb
1 file changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2090 | 2090 | | |
2091 | 2091 | | |
2092 | 2092 | | |
2093 | | - | |
2094 | 2093 | | |
2095 | 2094 | | |
2096 | 2095 | | |
| |||
2107 | 2106 | | |
2108 | 2107 | | |
2109 | 2108 | | |
2110 | | - | |
| 2109 | + | |
2111 | 2110 | | |
2112 | | - | |
2113 | | - | |
2114 | 2111 | | |
2115 | 2112 | | |
2116 | 2113 | | |
| |||
2121 | 2118 | | |
2122 | 2119 | | |
2123 | 2120 | | |
2124 | | - | |
2125 | 2121 | | |
2126 | 2122 | | |
2127 | 2123 | | |
2128 | 2124 | | |
2129 | 2125 | | |
2130 | 2126 | | |
2131 | | - | |
| 2127 | + | |
2132 | 2128 | | |
2133 | 2129 | | |
2134 | 2130 | | |
| |||
2145 | 2141 | | |
2146 | 2142 | | |
2147 | 2143 | | |
2148 | | - | |
2149 | | - | |
2150 | 2144 | | |
2151 | 2145 | | |
2152 | 2146 | | |
| |||
2170 | 2164 | | |
2171 | 2165 | | |
2172 | 2166 | | |
2173 | | - | |
| 2167 | + | |
2174 | 2168 | | |
2175 | | - | |
2176 | | - | |
2177 | 2169 | | |
2178 | 2170 | | |
2179 | 2171 | | |
| |||
0 commit comments