Re: ublk vs write cache and FUA
From: Ming Lei <hidden>
Date: 2022-07-21 15:27:49
From: Ming Lei <hidden>
Date: 2022-07-21 15:27:49
On Thu, Jul 21, 2022 at 05:14:58PM +0200, Christoph Hellwig wrote:
Hi Ming, ublk implements REQ_OP_FLUSH and REQ_FUA, but will never see those as it never calls blk_queue_write_cache. Can we drop the code? Or should there be a flag to enable write cache and fua support when setting up a device?
There should have been flags defined in ublksrv_ctrl_dev_info for describe wc/fua info, since ublk_drv doesn't handle any device specific logic. So please keep REQ_OP_FLUSH and REQ_FUA which two should be useful, and I will add flags and related code to use them. Thanks, Ming