From: Dave Wysochanski <dwysocha@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: dm_ioctl: Only send a change uevent when a resume ioctl changes the device.
Date: Tue, 26 Jan 2010 17:55:14 -0500 [thread overview]
Message-ID: <1264546514.14340.0.camel@f10-node1> (raw)
In-Reply-To: <20100126211219.GC17190@redhat.com>
On Tue, 2010-01-26 at 16:12 -0500, Mike Snitzer wrote:
> > > >
> > >
> > > Nice simplification Mike, as discussed on IRC.
> > >
> > > Ack.
> > >
> >
> > Actually, the more I think about it I am not sure about sending the
> > uevent in the case where dm_resume() fails. Seems like we should send
> > it since the map could have changed - depends on whether we went through
> > that 'if (new_map)' block.
>
> Pretty sure we resolved this. As we discussed (just after you sent this
> last reply); for the benefit of others:
>
> <dave> so the change uevent here really means "resume was successful"
> <mike> yes
> <dave> wait - if we suspend it, but resume fails, shouldn't we still
> send the event?
> <mike> in that case the device will be left suspended; in terms of udev
> that's not a "change"
> <mike> device is wedged (suspended)
> <mike> telling udev about it could just stack up other processes trying
> to issue IO to it
> <mike> but to be honest I don't know what the purist definition of what
> a "change" uevent is; I'm just treating it as telling some blackbox that
> DM device has changed and is functional
> <dave> that does make sense
>
Yes, I should have stopped with my original Ack!
prev parent reply other threads:[~2010-01-26 22:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 17:56 [PATCH] dm_ioctl: Only send a change uevent when a resume ioctl changes the device Dave Wysochanski
2010-01-26 18:09 ` Mike Snitzer
2010-01-26 18:48 ` Dave Wysochanski
2010-01-26 18:57 ` Dave Wysochanski
2010-01-26 21:12 ` Mike Snitzer
2010-01-26 22:55 ` Dave Wysochanski [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=1264546514.14340.0.camel@f10-node1 \
--to=dwysocha@redhat.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.