From: Mike Snitzer <snitzer@redhat.com>
To: Junichi Nomura <j-nomura@ce.jp.nec.com>
Cc: device-mapper development <dm-devel@redhat.com>,
Alasdair Kergon <agk@redhat.com>
Subject: Re: [PATCH 1/2] dm-multipath: push back requests instead of queueing
Date: Thu, 30 Jan 2014 10:08:22 -0500 [thread overview]
Message-ID: <20140130150822.GB5732@redhat.com> (raw)
In-Reply-To: <11AF7C027C4C02408624617A4986078401028BC8@BPXM12GP.gisp.nec.co.jp>
On Tue, Jan 21 2014 at 4:07am -0500,
Junichi Nomura <j-nomura@ce.jp.nec.com> wrote:
> On 01/21/14 00:49, Hannes Reinecke wrote:
> > On 01/20/2014 12:57 PM, Junichi Nomura wrote:
> >> On 01/17/14 19:42, Hannes Reinecke wrote:
> >>> @@ -1256,7 +1188,8 @@ static void pg_init_done(void *data, int errors)
> >>> m->queue_io = 0;
> >>>
> >>> m->pg_init_delay_retry = delay_retry;
> >>> - queue_work(kmultipathd, &m->process_queued_ios);
> >>> + if (!m->queue_io)
> >>> + dm_table_run_queue(m->ti->table);
> >>>
> >>> /*
> >>> * Wake up any thread waiting to suspend.
> >>
> >> Does pg_init retry still work with this change?
> >>
> >> I suspect it doesn't. When a retry is requested in pg_init_done(),
> >> m->queue_io is still 0 and somebody has to kick pg_init.
> >>
> >> Instead of replacing "process_queued_ios" work completely,
> >> how about keeping it around and just replacing dispatch_queued_ios() by
> >> dm_table_run_queue()?
> >>
> > I'd rather prefer to schedule the activate_path() workqueue item
> > directly; no need to involve yet another workqueue here.
>
> I would prefer it, too.
> I thought it would make review easier if you could split this patch in 2;
> one for removing the internal queue, the other for optimizing
> process_queued_ios work.
I think this is a good suggestion. Best to split it up.
next prev parent reply other threads:[~2014-01-30 15:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 10:42 [PATCHv2 0/2] dm-multipath: push back requests instead of queueing Hannes Reinecke
2014-01-17 10:42 ` [PATCH 1/2] " Hannes Reinecke
2014-01-20 11:57 ` Junichi Nomura
2014-01-20 15:49 ` Hannes Reinecke
2014-01-21 9:07 ` Junichi Nomura
2014-01-30 15:08 ` Mike Snitzer [this message]
2014-01-17 10:42 ` [PATCH 2/2] dm-multipath: reduce memory pressure during requeuing Hannes Reinecke
2014-01-20 11:59 ` Junichi Nomura
2014-01-20 12:15 ` Hannes Reinecke
2014-01-30 15:09 ` Mike Snitzer
2014-01-18 15:41 ` [PATCHv2 0/2] dm-multipath: push back requests instead of queueing Mike Snitzer
2014-01-30 1:38 ` Mike Snitzer
2014-01-30 6:53 ` Hannes Reinecke
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=20140130150822.GB5732@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=j-nomura@ce.jp.nec.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.