reiserfs: Make flush bios explicitely sync
authorJan Kara <jack@suse.cz>
Tue, 2 May 2017 11:16:18 +0000 (13:16 +0200)
committerJan Kara <jack@suse.cz>
Wed, 24 May 2017 11:35:20 +0000 (13:35 +0200)
commitd8747d642ec4ce96adf17ae35652a5e4015cfe02
tree646b9b91ec05b4b6e411bf2b428ea9fe2c371d03
parent0f0b9b63e14fc3f66e4d342df016c9b071c5abed
reiserfs: Make flush bios explicitely sync

Commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as
synchronous" removed REQ_SYNC flag from WRITE_{FUA|PREFLUSH|...}
definitions.  generic_make_request_checks() however strips REQ_FUA and
REQ_PREFLUSH flags from a bio when the storage doesn't report volatile
write cache and thus write effectively becomes asynchronous which can
lead to performance regressions

Fix the problem by making sure all bios which are synchronous are
properly marked with REQ_SYNC.

Fixes: b685d3d65ac791406e0dfd8779cc9b3707fea5a3
CC: reiserfs-devel@vger.kernel.org
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
fs/reiserfs/journal.c