Skip to content
Commit 401a18e9 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarMarkus Tripplesdorf <markus@trippelsdorf.de>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 6c510389
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment