irq: Do not attempt to create subdirectories if /proc/irq/<irq> failed
authorCyrill Gorcunov <gorcunov@openvz.org>
Mon, 26 Oct 2009 20:28:11 +0000 (23:28 +0300)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Nov 2009 12:14:22 +0000 (13:14 +0100)
commitc82a43d40b93200a10a9fec0a489791e65e135ca
tree5986787e2382d88e3191cffafcdf35aa2ad8353f
parent663e69592856df53ef52969482ef413a96bc4e06
irq: Do not attempt to create subdirectories if /proc/irq/<irq> failed

If a parent directory (ie /proc/irq/<irq>) could not be created
we should not attempt to create subdirectories. Otherwise it
would lead that "smp_affinity" and "spurious" entries are may be
registered under /proc root instead of a proper place.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20091026202811.GD5321@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/proc.c