public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: prajnoha@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 ./WHATS_NEW_DM udev/10-dm.rules.in
Date: Fri, 28 Jan 2011 11:41:00 -0000	[thread overview]
Message-ID: <20110128114153.25193.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2011-01-28 11:41:52

Modified files:
	.              : WHATS_NEW_DM 
	udev           : 10-dm.rules.in 

Log message:
	Set DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.
	
	This is to avoid any scanning and processing of DM devices while they are in
	suspended state (e.g. a rename while the device is suspended - a CHANGE event
	is generated!). Otherwise, any scanning in the rules could end up with locking
	the calling process until the device is resumed and so we don't receive a
	notification about udev rules completion until then (and that effectively
	locks out the process awaiting the notification!).
	
	However, we still keep 'disk' and any 'subsystem' related udev rules running.
	We trust these and these should check themselves whether a device is suspended
	or not, not trying to run any scanning if it is.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.439&r2=1.440
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/udev/10-dm.rules.in.diff?cvsroot=lvm2&r1=1.12&r2=1.13

--- LVM2/WHATS_NEW_DM	2011/01/25 21:51:30	1.439
+++ LVM2/WHATS_NEW_DM	2011/01/28 11:41:51	1.440
@@ -1,5 +1,6 @@
 Version 1.02.62 - 
 ===================================
+  Set DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.
   Initialize pool object for each row in _output_as_rows().
 
 Version 1.02.61 - 10th January 2011
--- LVM2/udev/10-dm.rules.in	2010/08/12 13:41:19	1.12
+++ LVM2/udev/10-dm.rules.in	2011/01/28 11:41:52	1.13
@@ -119,6 +119,11 @@
 ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_disable"
 ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="dm_disable"
 
+# Avoid processing and scanning a DM device in the other (foreign)
+# rules if it is in suspended state. However, we still keep 'disk'
+# and 'DM subsystem' related rules enabled in this case.
+ENV{DM_SUSPENDED}=="1", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
+
 GOTO="dm_end"
 
 LABEL="dm_disable"


             reply	other threads:[~2011-01-28 11:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 11:41 prajnoha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-08-12 13:41 prajnoha
2010-08-12 13:07 prajnoha
2010-06-23 17:00 prajnoha
2009-12-07 12:03 prajnoha

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=20110128114153.25193.qmail@sourceware.org \
    --to=prajnoha@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).