All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: Jens Axboe <axboe@fb.com>
Cc: dm-devel@redhat.com, Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v3] block, dm: don't copy bios for request clones
Date: Mon, 11 May 2015 11:55:58 -0400	[thread overview]
Message-ID: <20150511155558.GA19940@redhat.com> (raw)
In-Reply-To: <20150428005950.GA31039@redhat.com>

On Mon, Apr 27 2015 at  8:59pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:

> From: Christoph Hellwig <hch@lst.de>
> 
> Currently dm-multipath has to clone the bios for every request sent
> to the lower devices, which wastes cpu cycles and ties down memory.
> 
> This patch instead adds a new REQ_CLONE flag that instructs req_bio_endio
> to not complete bios attached to a request, which we set on clone
> requests similar to bios in a flush sequence.  With this change I/O
> errors on a path failure only get propagated to dm-multipath, which
> can then either resubmit the I/O or complete the bios on the original
> request.
> 
> I've done some basic testing of this on a Linux target with ALUA support,
> and it survives path failures during I/O nicely.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> ---
>  block/blk-core.c          |  94 +++----------------------
>  drivers/md/dm-table.c     |  25 ++++---
>  drivers/md/dm.c           | 171 +++++++++++-----------------------------------
>  drivers/md/dm.h           |   5 +-
>  include/linux/blk_types.h |   2 +
>  include/linux/blkdev.h    |   6 +-
>  6 files changed, 73 insertions(+), 230 deletions(-)
> 
> v3: really just some line-wrapping, whitespace, and misc small nits

Hey Jens,

Given the blk-core changes, would you like to pick this up for 4.2 and
I'll just base DM ontop of linux-block.git again for the 4.2 cycle?

The patch is available here: https://patchwork.kernel.org/patch/6285081/

Mike

p.s. I do have a followup DM patch that cleans things up further but I
can just stage it via linux-dm.git:
https://patchwork.kernel.org/patch/6285091/

      parent reply	other threads:[~2015-05-11 15:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-25 10:23 [PATCH v2] block, dm: don't copy bios for request clones Christoph Hellwig
2015-04-25 18:13 ` Hannes Reinecke
2015-04-26 13:35   ` Mike Snitzer
2015-04-26 14:20   ` Christoph Hellwig
2015-04-28  0:59 ` [PATCH v3] " Mike Snitzer
2015-04-28  1:03   ` [PATCH 2/1] dm: do not allocate any mempools for blk-mq request-based DM Mike Snitzer
2015-04-28  6:28     ` Christoph Hellwig
2015-04-28 10:22       ` Mike Snitzer
2015-04-28  5:49   ` [PATCH v3] block, dm: don't copy bios for request clones Hannes Reinecke
2015-04-28  6:29   ` Christoph Hellwig
2015-04-28  9:45     ` Mike Snitzer
2015-05-11 15:55   ` Mike Snitzer [this message]

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=20150511155558.GA19940@redhat.com \
    --to=snitzer@redhat.com \
    --cc=axboe@fb.com \
    --cc=dm-devel@redhat.com \
    --cc=hch@lst.de \
    /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.