]> 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>
Tue, 7 Apr 2015 23:44:39 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:39 +0000 (09:44 +1000)
commit3aeb5ffdf79729bdac8b59c014df61d172b707e5
tree1adbd66364be1a4f576e5ed1cc3617f8bd78dc23
parentcae3bda6f359abfcc2023978f8a443da7850ed5e
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