]> git.baikalelectronics.ru Git - kernel.git/commit
aoe: do not BUG if memory pressure prevented debugfs file creation
authorEd Cashin <ecashin@coraid.com>
Wed, 11 Sep 2013 21:25:46 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:59:28 +0000 (15:59 -0700)
commitca8f54a9817a88f8f2c9a701d8ecb5992f6db55d
tree3dcb175f3bb1fcde3dd4a3ba379e67ad13ff5a10
parent193a229810994d8ee700e8fd7b7c23f31c5d504d
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.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoeblk.c