Repository navigation
Commit 467ca75
swim3: clean up request completion paths
swim3 curiously tries to update request parameters before calling
__blk_end_request() when __blk_end_request() will do it anyway, and it
updates request for partial completion manually instead of using
blk_update_request(). Also, it does some spurious checks on rq such
as testing whether rq->sector is negative or current_nr_sectors is
zero right after fetching.
Drop unnecessary stuff and use standard block layer mechanisms.
[ Impact: cleanup ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>1 parent e091eb6 commit 467ca75
1 file changed
Lines changed: 5 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | 326 | | |
331 | 327 | | |
332 | 328 | | |
| |||
593 | 589 | | |
594 | 590 | | |
595 | 591 | | |
596 | | - | |
597 | | - | |
598 | 592 | | |
599 | 593 | | |
600 | 594 | | |
| |||
605 | 599 | | |
606 | 600 | | |
607 | 601 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | 602 | | |
617 | 603 | | |
618 | 604 | | |
| |||
719 | 705 | | |
720 | 706 | | |
721 | 707 | | |
722 | | - | |
723 | | - | |
724 | | - | |
| 708 | + | |
725 | 709 | | |
726 | 710 | | |
727 | 711 | | |
| |||
745 | 729 | | |
746 | 730 | | |
747 | 731 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
| 732 | + | |
755 | 733 | | |
756 | 734 | | |
757 | 735 | | |
| |||
761 | 739 | | |
762 | 740 | | |
763 | 741 | | |
764 | | - | |
| 742 | + | |
| 743 | + | |
765 | 744 | | |
766 | 745 | | |
767 | 746 | | |
| |||
0 commit comments