From: Pavel Shilovsky Date: Thu, 2 Oct 2014 16:13:35 +0000 (+0400) Subject: CIFS: Fix readpages retrying on reconnects X-Git-Tag: fixes-for-v3.18-merge-window~44^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1209bbdff2f6bbffa6eb5823033bbd7b8799a5e2;p=pandora-kernel.git CIFS: Fix readpages retrying on reconnects If we got a reconnect error from async readv we re-add pages back to page_list and continue loop. That is wrong because these pages have been already added to the pagecache but page_list has pages that have not been added to the pagecache yet. This ends up with a general protection fault in put_pages after readpages. Fix it by not retrying the read of these pages and falling back to readpage instead. Fixes debian bug 762306 Signed-off-by: Pavel Shilovsky Signed-off-by: Steve French Tested-by: Arthur Marsh --- Reading git-diff-tree failed