From: Jens Axboe Date: Fri, 25 Mar 2011 15:57:52 +0000 (+0100) Subject: block: fix bug with inserting flush requests as sort/merge X-Git-Tag: v2.6.39-rc1~74^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401a18e92ce32cd0ddfa5738899ca2b8114f2bbf;p=pandora-kernel.git block: fix bug with inserting flush requests as sort/merge With the introduction of the on-stack plugging, we would assume that any request being inserted was a normal file system request. As flush/fua requires a special insert mode, this caused problems. Fix this up by checking for this in flush_plug_list() and use the appropriate insert mechanism. Big thanks goes to Markus Tripplesdorf for tirelessly testing patches, and to Sergey Senozhatsky for helping find the real issue. Reported-by: Markus Tripplesdorf Signed-off-by: Jens Axboe --- Reading git-diff-tree failed