[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH] optimize one of the cache flushes
- From: Alasdair G Kergon <agk redhat com>
- To: Mikulas Patocka <mpatocka redhat com>
- Cc: Mike Snitzer <msnitzer redhat com>, dm-devel redhat com
- Subject: Re: [dm-devel] [PATCH] optimize one of the cache flushes
- Date: Thu, 8 Jul 2010 00:30:38 +0100
On Wed, Jul 07, 2010 at 06:22:24PM -0400, Mikulas Patocka wrote:
> if (!bio_empty_barrier(bio)) {
> __split_and_process_bio(md, bio);
> - dm_flush(md);
> + /*
> + * If the request isn't supported, don't waste time with
> + * the second flush.
> + */
> + if (md->barrier_error != -EOPNOTSUPP)
> + dm_flush(md);
Can we safely skip it with any other types of failures there too?
Alasdair
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]