Repository navigation
Commit e091eb6
hd: clean up request completion paths
hd read/write_intr() functions manually manipulate request to
incrementally complete it, which block layer already supports. Simply
use block layer completion routines instead of manual partial
completion.
While at it, clear unnecessary elv_next_request() check at the tail of
read_intr(). This also makes read and write_intr() more consistent.
[ Impact: cleanup ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>1 parent f81f2f7 commit e091eb6
1 file changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | 459 | | |
464 | 460 | | |
465 | | - | |
| 461 | + | |
466 | 462 | | |
467 | 463 | | |
468 | | - | |
469 | | - | |
470 | | - | |
| 464 | + | |
471 | 465 | | |
472 | 466 | | |
473 | 467 | | |
| 468 | + | |
474 | 469 | | |
475 | 470 | | |
476 | 471 | | |
477 | 472 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 473 | + | |
481 | 474 | | |
482 | 475 | | |
483 | 476 | | |
| |||
499 | 492 | | |
500 | 493 | | |
501 | 494 | | |
| 495 | + | |
502 | 496 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
| 497 | + | |
510 | 498 | | |
511 | 499 | | |
512 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
513 | 503 | | |
514 | | - | |
| 504 | + | |
515 | 505 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 506 | + | |
519 | 507 | | |
520 | 508 | | |
521 | 509 | | |
| |||
0 commit comments