From: Jan Kara Date: Mon, 29 Apr 2013 22:06:18 +0000 (-0700) Subject: direct-io: submit bio after boundary buffer is added to it X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~128^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1058b981272f5027f9be17241441198dbd1fefd;p=pandora-kernel.git 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 Reported-by: Kazuya Mio Tested-by: Kazuya Mio Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed