From: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
To: Mike Anderson <andmike@linux.vnet.ibm.com>,
Alasdair Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH 2/2] dm-mpath: Add element for suspended state.
Date: Fri, 20 Nov 2009 16:19:49 +0900 [thread overview]
Message-ID: <4B064315.5050105@ct.jp.nec.com> (raw)
In-Reply-To: <20091116135430.GB11886@agk-dp.fab.redhat.com>
Hi Alasdair, Mike,
On 11/16/2009 10:54 PM +0900, Alasdair G Kergon wrote:
> On Sun, Nov 15, 2009 at 11:38:29PM -0800, Mike Anderson wrote:
>> Add element to multipath structure for indication of suspended state.
>
> Is there a way to avoid this?
> It seems redundant for a target to need to track whether or not
> it is suspended. Core dm should be capable of that.
>
> dm_suspend has:
> dm_table_postsuspend_targets(map);
>
> set_bit(DMF_SUSPENDED, &md->flags);
>
> Can we reorder those two?
For multipath and dm-core, yes.
I'm not sure whether other targets care about the ordering.
But from semantics point of view, is it confusing if dm_suspended()
returns true but a target is doing something in postsuspend()?
If we take the approach instead of this patch, the patch-set is like:
1/4: http://patchwork.kernel.org/patch/61588/
2/4: http://patchwork.kernel.org/patch/61589/
3/4: http://patchwork.kernel.org/patch/61594/
4/4: http://patchwork.kernel.org/patch/61595/
Please review.
> What about dm_resume?
> clear_bit(DMF_SUSPENDED, &md->flags);
> Can that move a little higher up the function?
> - preresume, clear DMF_SUSPENDED, resume perhaps?
I think we shouldn't move the clear_bit in resume.
It doesn't make sense to clear the flag before I/Os start flowing.
If targets want to do any preparation before I/Os flowing through,
it can do in the resume() callback.
Thanks,
Kiyoshi Ueda
prev parent reply other threads:[~2009-11-20 7:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 7:38 [PATCH 0/2] dm-mpath: mutex and suspended check for messages Mike Anderson
2009-11-16 7:38 ` [PATCH 1/2] dm-mpath: Add mutex to synchronize adding and flushing work Mike Anderson
2009-11-16 9:16 ` Kiyoshi Ueda
2009-11-16 7:38 ` [PATCH 2/2] dm-mpath: Add element for suspended state Mike Anderson
2009-11-16 9:17 ` Kiyoshi Ueda
2009-11-16 13:54 ` Alasdair G Kergon
2009-11-20 7:19 ` Kiyoshi Ueda [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=4B064315.5050105@ct.jp.nec.com \
--to=k-ueda@ct.jp.nec.com \
--cc=agk@redhat.com \
--cc=andmike@linux.vnet.ibm.com \
--cc=dm-devel@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.