]> 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>
Wed, 14 May 2014 00:01:38 +0000 (10:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:01:38 +0000 (10:01 +1000)
commitbe30edd0314b8959facb8c7afb0907eadbf30f38
treec8b84f8275d0a8f44ad9cf4da066ce169a5e8a1c
parent9e327fee4d1cb2c6fe541cb8d75b6efdd12172b8
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