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>
Subject: Re: [PATCH 6/6] dm-snapshot: use bufio prefetch
Date: Tue, 14 Jan 2014 16:50:40 -0500	[thread overview]
Message-ID: <20140114215040.GA12463@redhat.com> (raw)
In-Reply-To: <alpine.LRH.2.02.1401141540280.19206@file01.intranet.prod.int.rdu2.redhat.com>

On Tue, Jan 14 2014 at  3:43pm -0500,
Mikulas Patocka <mpatocka@redhat.com> wrote:

> 
> 
> On Tue, 14 Jan 2014, Mike Snitzer wrote:
> 
> > On Mon, Jan 13 2014 at  7:14pm -0500,
> > Mikulas Patocka <mpatocka@redhat.com> wrote:
> > 
> > > +	dm_bufio_set_minimum_buffers(client, DM_PREFETCH_CHUNKS + 1);
> > > +
> > 
> > Why the +1?  I'd prefer that be managed in dm-bufio rather than relying
> > on all callers to know to add +1.
> > 
> > Can you supply a followup patch that cleans this up in bufio and remove
> > the +1 in the above dm_bufio_set_minimum_buffers call?
> 
> If DM_PREFETCH_CHUNKS is 12, we need 13 buffers in dm-bufio (one for the 
> current buffer that is being read and 12 read ahead buffers).
> 
> It is correct to have +1 in snapshot code, not in dm-bufio code.

OK, thanks for clarifying.

I've folded the dm bufio changes needed for the respective dm snapshot
changes -- so there are now 4 patches instead of your otiginal 6.
I added a comment for "1 + DM_PREFETCH_CHUNKS" above the
dm_bufio_set_minimum_buffers call and tweaked the headers a little.

I also staged your non-modular kobject release patch (tweaked the header
on that a little bit too).

Please see the 5 topmost commits here:
http://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/log/?h=for-next

  reply	other threads:[~2014-01-14 21:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14  0:12 [PATCH 1/6] dm-bufio: introduce dm_bufio_forget Mikulas Patocka
2014-01-14  0:13 ` [PATCH 2/6] dm-bufio: introduce dm_bufio_set_minimum_buffers Mikulas Patocka
2014-01-14  0:13   ` [PATCH 3/6] dm-snapshot: use GFP_KERNEL when initializing the snapshot Mikulas Patocka
2014-01-14  0:14     ` [PATCH 4/6] dm-snapshot: make ps->area explicit Mikulas Patocka
2014-01-14  0:14       ` [PATCH 5/6] dm-snapshot: use dm-bufio Mikulas Patocka
2014-01-14  0:14         ` [PATCH 6/6] dm-snapshot: use bufio prefetch Mikulas Patocka
2014-01-14 16:58           ` Mike Snitzer
2014-01-14 20:43             ` Mikulas Patocka
2014-01-14 21:50               ` Mike Snitzer [this message]
2014-01-16 20:53                 ` 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=20140114215040.GA12463@redhat.com \
    --to=snitzer@redhat.com \
    --cc=agk@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=mpatocka@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.