All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] aoe: remove too-strict BUG from aoedev teardown and update udev example
@ 2013-08-28 15:41 Ed Cashin
  2013-08-28 15:41 ` [PATCH 1/2] aoe: do not BUG if memory pressure prevented debugfs file creation Ed Cashin
  2013-08-28 15:43 ` [PATCH 2/2] aoe: remove do-nothing NAME="%k" term from example udev rules Ed Cashin
  0 siblings, 2 replies; 3+ messages in thread
From: Ed Cashin @ 2013-08-28 15:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, ecashin

This patch series applies to linux-next/akpm fetched 22 August, commit
a187db44dd9b24a9eed2141af962306a36935423.  Yesterday's linux-next/akpm
has no updates to the aoe files that could conflict, though.

Ed L. Cashin (2):
  aoe: do not BUG if memory pressure prevented debugfs file creation
  aoe: remove do-nothing NAME="%k" term from example udev rules

 Documentation/aoe/udev.txt |    2 +-
 drivers/block/aoe/aoeblk.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] aoe: do not BUG if memory pressure prevented debugfs file creation
  2013-08-28 15:41 [PATCH 0/2] aoe: remove too-strict BUG from aoedev teardown and update udev example Ed Cashin
@ 2013-08-28 15:41 ` Ed Cashin
  2013-08-28 15:43 ` [PATCH 2/2] aoe: remove do-nothing NAME="%k" term from example udev rules Ed Cashin
  1 sibling, 0 replies; 3+ messages in thread
From: Ed Cashin @ 2013-08-28 15:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, ecashin

If the system has trouble allocating memory for the creation of the
aoe debugfs directory or of a file inside it, the debugfs member of
an aoedev can be NULL.

Do not treat a NULL debugfs pointer as a BUG on aoedev shutdown,
avoiding the user impact of an unecessary panic.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
---
 drivers/block/aoe/aoeblk.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index d63dcf0..dd73e1f 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -215,7 +215,6 @@ aoedisk_add_debugfs(struct aoedev *d)
 void
 aoedisk_rm_debugfs(struct aoedev *d)
 {
-	BUG_ON(d->debugfs == NULL);
 	debugfs_remove(d->debugfs);
 	d->debugfs = NULL;
 }
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] aoe: remove do-nothing NAME="%k" term from example udev rules
  2013-08-28 15:41 [PATCH 0/2] aoe: remove too-strict BUG from aoedev teardown and update udev example Ed Cashin
  2013-08-28 15:41 ` [PATCH 1/2] aoe: do not BUG if memory pressure prevented debugfs file creation Ed Cashin
@ 2013-08-28 15:43 ` Ed Cashin
  1 sibling, 0 replies; 3+ messages in thread
From: Ed Cashin @ 2013-08-28 15:43 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, ecashin

When the example udev rules in the documentation are used without
modification, warnings like the one shown below appear in the system
logs:

  /var/log/messages:Aug 22 11:09:11 kung udevd[445]: NAME="%k" \
    is superfluous and breaks kernel supplied names, please remove \
    it from /etc/udev/rules.d/60-aoe.rules:26

Removing the term does not cause any problems with the creation
of the special character and block device nodes.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
---
 Documentation/aoe/udev.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/aoe/udev.txt b/Documentation/aoe/udev.txt
index 8686e78..1f06daf 100644
--- a/Documentation/aoe/udev.txt
+++ b/Documentation/aoe/udev.txt
@@ -23,4 +23,4 @@ SUBSYSTEM=="aoe", KERNEL=="revalidate",	NAME="etherd/%k", GROUP="disk", MODE="02
 SUBSYSTEM=="aoe", KERNEL=="flush",	NAME="etherd/%k", GROUP="disk", MODE="0220"
 
 # aoe block devices     
-KERNEL=="etherd*",       NAME="%k", GROUP="disk"
+KERNEL=="etherd*",       GROUP="disk"
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-28 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-28 15:41 [PATCH 0/2] aoe: remove too-strict BUG from aoedev teardown and update udev example Ed Cashin
2013-08-28 15:41 ` [PATCH 1/2] aoe: do not BUG if memory pressure prevented debugfs file creation Ed Cashin
2013-08-28 15:43 ` [PATCH 2/2] aoe: remove do-nothing NAME="%k" term from example udev rules Ed Cashin

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.