All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: dm-devel@redhat.com, "Alasdair G. Kergon" <agk@redhat.com>,
	Zdenek Kabelac <zkabelac@redhat.com>
Subject: Re: [patch 2/2] dm-delay: add third flush class
Date: Tue, 17 Apr 2018 15:08:20 -0400	[thread overview]
Message-ID: <20180417190820.GA29125@redhat.com> (raw)
In-Reply-To: <20180416223610.350132415@debian.vm>

On Mon, Apr 16 2018 at  6:33pm -0400,
Mikulas Patocka <mpatocka@redhat.com> wrote:

> This patch adds a new class for dm-delay that delays flush requests.
> Previously, flushes were delayed as writes, but it caused problems if the
> user needed to create a device with one or few slow sectors for the
> purpose of testing - all flushes would be forwarded to this device and
> delayed, and that skews the test results. This patch allows to select 0
> delay for flushes.
> 
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

The flush device shouldn't ever be allowed to be different than the
write device should it?  Also, what does an offset even mean in the
context of flush?

Pretty awkward really.  I get that you've factored out the ctr code and
are just reusing it for flush; and that in practice these knobs won't
get used (or flush_device won't be different than write_device).. but
I'm just not following why we want to expose flush_offset and
flush_device at all.

Mike

  reply	other threads:[~2018-04-17 19:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16 22:33 [patch 0/2] dm-delay flush patches Mikulas Patocka
2018-04-16 22:33 ` [patch 1/2] dm-delay: refactor repetitive code Mikulas Patocka
2018-04-16 22:33 ` [patch 2/2] dm-delay: add third flush class Mikulas Patocka
2018-04-17 19:08   ` Mike Snitzer [this message]
2018-04-17 19:12     ` Mikulas Patocka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180417190820.GA29125@redhat.com \
    --to=snitzer@redhat.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=mpatocka@redhat.com \
    --cc=zkabelac@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.