diff options
author | Jon Derrick <jonathan.derrick@intel.com> | 2016-09-14 18:38:55 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-27 21:30:36 +0200 |
commit | 4b202b716e4e282c26c4a95952ea33e318c363ab (patch) | |
tree | 672529777b3c47350a78ed1374dd3a8329737147 /drivers/pci/probe.c | |
parent | ACPI / APEI: Send correct severity to calculate AER severity (diff) | |
download | linux-4b202b716e4e282c26c4a95952ea33e318c363ab.tar.xz linux-4b202b716e4e282c26c4a95952ea33e318c363ab.zip |
PCI/AER: Avoid memory allocation in interrupt handling path
When handling AER events, we previously allocated a struct aer_err_info,
processed the error, and freed the struct. But aer_isr_one_error() is
serialized by rpc_mutex, so we never need more than one copy of the struct,
and the struct is only about 70 bytes, so we're not saving much by
allocating it dynamically.
Embed a struct aer_err_info directly in struct aer_rpc, which is allocated
at probe-time by aer_probe().
[bhelgaas: changelog]
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions