Commit 3756587
block: Simplify REQ_OP_ZONE_RESET_ALL handling
[ Upstream commit c7a1d92 ]
There is no need for the function __blkdev_reset_all_zones() as
REQ_OP_ZONE_RESET_ALL can be handled directly in blkdev_reset_zones()
bio loop with an early break from the loop. This patch removes this
function and modifies blkdev_reset_zones(), simplifying the code.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 94ae9b7 commit 3756587
1 file changed
+13
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 205 | | |
| 206 | + | |
225 | 207 | | |
226 | 208 | | |
227 | 209 | | |
228 | 210 | | |
229 | 211 | | |
230 | | - | |
| 212 | + | |
231 | 213 | | |
232 | 214 | | |
233 | 215 | | |
| |||
271 | 253 | | |
272 | 254 | | |
273 | 255 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | 256 | | |
278 | 257 | | |
279 | 258 | | |
| |||
285 | 264 | | |
286 | 265 | | |
287 | 266 | | |
288 | | - | |
289 | 267 | | |
290 | | - | |
291 | 268 | | |
292 | | - | |
293 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
294 | 281 | | |
295 | 282 | | |
296 | 283 | | |
297 | 284 | | |
298 | | - | |
299 | 285 | | |
300 | 286 | | |
301 | 287 | | |
| |||
0 commit comments