]> 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, 22 May 2014 00:42:45 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:45 +0000 (10:42 +1000)
commit21f56fc5d989a58c33b8525f17e7e477b767a27e
tree497b7aca5f3937f5fbd02a7b37d71365cd6bc0a8
parentd19c07769a0242ce1aef06f40059f95d251cb0d4
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