Skip to contentSkip to conversation

+ aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Aug 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Wed, 28 Aug 2013 14:12:48 -0700

The patch titled
Subject: aoe: do not BUG if memory pressure prevented debugfs file creation
has been added to the -mm tree. Its filename is
aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Ed Cashin <[email protected]>
Subject: aoe: do not BUG if memory pressure prevented debugfs file creation

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.

---

 drivers/block/aoe/aoeblk.c |    1 -
 1 file changed, 1 deletion(-)
drivers/block/aoe/aoeblk.c renamed from drivers/block/aoe/aoeblk.c~aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation +0 -1
diff -puN drivers/block/aoe/aoeblk.c~aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation 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;
 }

_

Patches currently in -mm which might be from [email protected] are

aoe-create-and-destroy-debugfs-directory-for-aoe.patch aoe-add-aoe-target-files-to-debugfs.patch aoe-provide-file-operations-for-debugfs-files.patch aoe-fill-in-per-aoe-target-information-for-debugfs-file.patch aoe-update-copyright-date.patch aoe-update-internal-version-number-to-85.patch aoe-remove-custom-implementation-of-kbasename.patch aoe-suppress-compiler-warnings.patch aoe-do-not-bug-if-memory-pressure-prevented-debugfs-file-creation.patch aoe-remove-do-nothing-name=%k-term-from-example-udev-rules.patch