Re: [PATCH] Btrfs: add write_flags for compression bio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 16, 2017 at 03:33:10PM +0200, David Sterba wrote:
> On Fri, Oct 13, 2017 at 03:10:35PM -0600, Liu Bo wrote:
> > Compression code path has only flaged bios with REQ_OP_WRITE no matter
> > where the bios come from.  This breaks the rule that sync writes and
> > writeback writes need to be differentiated from each other.
> 
> What are the implications of the change?

All writes need to have the correct bio flag so that block layer can
recognize them to do throttle or other stuff.  Compression writes are
no exception, but currently we don't attach the correct bio flag to
either compressed writeback writes or compressed sync writes.

Does it make sense?

Thanks,

-liubo
--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux