summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/xen.c
diff options
context:
space:
mode:
authorSeiji Aguchi <seiji.aguchi@hds.com>2013-02-12 13:04:41 -0800
committerTony Luck <tony.luck@intel.com>2013-02-12 13:04:41 -0800
commita93bc0c6e07ed9bac44700280e65e2945d864fd4 (patch)
treed14543068b4734356ba2c8eb637b1c87dab378f3 /arch/x86/pci/xen.c
parent81fa4e581d9283f7992a0d8c534bb141eb840a14 (diff)
efi_pstore: Introducing workqueue updating sysfs
[Problem] efi_pstore creates sysfs entries, which enable users to access to NVRAM, in a write callback. If a kernel panic happens in an interrupt context, it may fail because it could sleep due to dynamic memory allocations during creating sysfs entries. [Patch Description] This patch removes sysfs operations from a write callback by introducing a workqueue updating sysfs entries which is scheduled after the write callback is called. Also, the workqueue is kicked in a just oops case. A system will go down in other cases such as panic, clean shutdown and emergency restart. And we don't need to create sysfs entries because there is no chance for users to access to them. efi_pstore will be robust against a kernel panic in an interrupt context with this patch. Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Acked-by: Matt Fleming <matt.fleming@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/x86/pci/xen.c')
0 files changed, 0 insertions, 0 deletions