mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
dm writecache: handle REQ_FUA
commit c1005322ff02110a4df7f0033368ea015062b583 upstream. Call writecache_flush() on REQ_FUA in writecache_map(). Cc: [email protected] # 4.18+ Signed-off-by: Maged Mokhtar <[email protected]> Acked-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
e8f0102ddf
commit
26fe630624
1 changed files with 2 additions and 1 deletions
|
|
@ -1218,7 +1218,8 @@ bio_copy:
|
|||
}
|
||||
} while (bio->bi_iter.bi_size);
|
||||
|
||||
if (unlikely(wc->uncommitted_blocks >= wc->autocommit_blocks))
|
||||
if (unlikely(bio->bi_opf & REQ_FUA ||
|
||||
wc->uncommitted_blocks >= wc->autocommit_blocks))
|
||||
writecache_flush(wc);
|
||||
else
|
||||
writecache_schedule_autocommit(wc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue