On Mon, Oct 23, 2017 at 11:18:16PM -0600, Liu Bo wrote: > Compression code path has only flaged bios with REQ_OP_WRITE no matter > where the bios come from, but it could be a sync write if fsync starts > this writeback or a normal writeback write if wb kthread starts a > periodic writeback. > > It breaks the rule that sync writes and writeback writes need to be > differentiated from each other, because from the POV of block layer, > all bios need to be recognized by these flags in order to do some > management, e.g. throttlling. > > This passes writeback_control to compression write path so that it can > send bios with proper flags to block layer. > > Signed-off-by: Liu Bo <bo.li.liu@xxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
