summaryrefslogtreecommitdiff
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorJiaran Zhang <zhangjiaran@huawei.com>2021-09-13 16:08:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 13:26:43 +0300
commitd291cca2c4f72b2b8fc2d675fd06d8b3bc719907 (patch)
treed2ffbf16dfb64b5cb503b281b0827f058df92122 /mm/memory_hotplug.c
parent65bcb8f73ae39e5eb3183a60bfc8f26f8c393de1 (diff)
downloadlinux-d291cca2c4f72b2b8fc2d675fd06d8b3bc719907.tar.xz
net: hns3: fix the timing issue of VF clearing interrupt sources
commit 427900d27d86b820c559037a984bd403f910860f upstream. Currently, the VF does not clear the interrupt source immediately after receiving the interrupt. As a result, if the second interrupt task is triggered when processing the first interrupt task, clearing the interrupt source before exiting will clear the interrupt sources of the two tasks at the same time. As a result, no interrupt is triggered for the second task. The VF detects the missed message only when the next interrupt is generated. Clearing it immediately after executing check_evt_cause ensures that: 1. Even if two interrupt tasks are triggered at the same time, they can be processed. 2. If the second task is triggered during the processing of the first task and the interrupt source is not cleared, the interrupt is reported after vector0 is enabled. Fixes: b90fcc5bd904 ("net: hns3: add reset handling for VF when doing Core/Global/IMP reset") Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions