summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJon Derrick <jonathan.derrick@intel.com>2016-09-14 10:38:55 -0600
committerBjorn Helgaas <bhelgaas@google.com>2016-09-27 14:30:36 -0500
commit4b202b716e4e282c26c4a95952ea33e318c363ab (patch)
tree672529777b3c47350a78ed1374dd3a8329737147 /Documentation
parent2458d66b245e39786bc5b51062e6d30aa5ad0282 (diff)
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 'Documentation')
0 files changed, 0 insertions, 0 deletions