]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/mpage.c: forgotten WRITE_SYNC in case of data integrity write
authorRoman Pen <r.peniaev@gmail.com>
Thu, 26 Jun 2014 00:42:43 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:43 +0000 (10:42 +1000)
commitac47bff037bc8b3b70ada8ca3c4f99608b5a0027
tree07fab30a409d3bf941e21a606d8cbc924e44575b
parenta37d1af72b151c155344d574b2d1555054627acb
fs/mpage.c: forgotten WRITE_SYNC in case of data integrity write

In case of wbc->sync_mode == WB_SYNC_ALL we need to do data integrity
write, thus mark request as WRITE_SYNC.

akpm: afaict this change will cause the data integrity write bios to be
placed onto the second queue in cfq_io_cq.cfqq[], which presumably results
in special treatment.  The documentation for REQ_SYNC is horrid.

Signed-off-by: Roman Pen <r.peniaev@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/mpage.c