Commit b1058b9
direct-io: submit bio after boundary buffer is added to it
Currently, dio_send_cur_page() submits bio before current page and cached
sdio->cur_page is added to the bio if sdio->boundary is set. This is
actually wrong because sdio->boundary means the current buffer is the last
one before metadata needs to be read. So we should rather submit the bio
after the current page is added to it.
Signed-off-by: Jan Kara <[email protected]>
Reported-by: Kazuya Mio <[email protected]>
Tested-by: Kazuya Mio <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent 092c8d4 commit b1058b9
1 file changed
+11
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | 675 | | |
682 | 676 | | |
683 | 677 | | |
| |||
737 | 731 | | |
738 | 732 | | |
739 | 733 | | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | 734 | | |
751 | 735 | | |
752 | 736 | | |
| |||
758 | 742 | | |
759 | 743 | | |
760 | 744 | | |
761 | | - | |
| 745 | + | |
762 | 746 | | |
763 | 747 | | |
764 | 748 | | |
| |||
768 | 752 | | |
769 | 753 | | |
770 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
771 | 765 | | |
772 | 766 | | |
773 | 767 | | |
| |||
0 commit comments