[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH 5/5] dm: implement REQ_FLUSH/FUA support
- From: Christoph Hellwig <hch lst de>
- To: Tejun Heo <tj kernel org>
- Cc: jack suse cz, Mike Snitzer <snitzer redhat com>, mst redhat com, linux-ide vger kernel org, dm-devel redhat com, James Bottomley suse de, konishi ryusuke lab ntt co jp, hch lst de, vst vlnb net, linux-scsi vger kernel org, Tejun Heo <tj kernle org>, rusty rustcorp com au, linux-raid vger kernel org, swhiteho redhat com, chris mason oracle com, tytso mit edu, jaxboe fusionio com, linux-kernel vger kernel org, linux-fsdevel vger kernel org, rwheeler redhat com
- Subject: Re: [dm-devel] [PATCH 5/5] dm: implement REQ_FLUSH/FUA support
- Date: Tue, 17 Aug 2010 15:13:09 +0200
On Tue, Aug 17, 2010 at 11:33:52AM +0200, Tejun Heo wrote:
> > That logic wasn't just about retries (at least not in the latest
> > kernel). With commit 708e929513502fb0 the -EOPNOTSUPP checking also
> > serves to optimize the barrier+discard case (when discards aren't
> > supported).
>
> With the patch applied, there's no second flush. Those requests would
> now be REQ_FLUSH + REQ_DISCARD. The first can't be avoided anyway and
> there won't be the second flush to begin with, so I don't think this
> worsens anything.
In fact the pre-flush is completely superflous for discards, but that's a
separate discussion and should not be changed as part of this patchset but
rather explicitly.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]