diff options
| author | Jia-Ju Bai <[email protected]> | 2018-03-18 14:53:28 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2018-06-29 15:26:38 +0000 |
| commit | 7403bd14d7b545ef89c3443c09ccdb3c631a9a27 (patch) | |
| tree | 4c3aa568b20d49a94775c3f05b411ae9172f076f /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | Linux 4.18-rc1 (diff) | |
| download | kernel-7403bd14d7b545ef89c3443c09ccdb3c631a9a27.tar.gz kernel-7403bd14d7b545ef89c3443c09ccdb3c631a9a27.zip | |
PCI: hv: Replace GFP_ATOMIC with GFP_KERNEL in new_pcichild_device()
new_pcichild_device() is not called in atomic context.
The call chain ending up at new_pcichild_device() is:
[1] new_pcichild_device() <- pci_devices_present_work()
pci_devices_present_work() is only set in INIT_WORK().
Despite never getting called from atomic context,
new_pcichild_device() calls kzalloc with GFP_ATOMIC,
which waits busily for allocation.
GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL
to avoid busy waiting.
Signed-off-by: Jia-Ju Bai <[email protected]>
[[email protected]: reworked commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
