From b1058b981272f5027f9be17241441198dbd1fefd Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Mon, 29 Apr 2013 15:06:18 -0700 Subject: [PATCH] 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-format-patch failed