summaryrefslogtreecommitdiff
path: root/rust/kernel/irq/request.rs
diff options
context:
space:
mode:
authorfuyuanli <fuyuanli0722@gmail.com>2025-08-25 17:15:08 +0800
committerJon Mason <jdmason@kudzu.us>2025-09-22 09:35:21 -0400
commit3db835dd8f9a78e9709cb48b77d89b41792e9281 (patch)
tree3e75150efd15507d50781934caf557a3c0001e4d /rust/kernel/irq/request.rs
parenteb4431bf8823cc55be6c705c122980be0690a904 (diff)
ntb: Add mutex to make link_event_callback executed linearly.
Since the CPU selected by schedule_work is uncertain, multiple link_event callbacks may be executed at same time. For example, after peer's link is up, it is down quickly before local link_work completed. If link_cleanup is added to the workqueue of another CPU, then link_work and link_cleanup may be executed at the same time. So add a mutex to prevent them from being executed concurrently. Signed-off-by: fuyuanli <fuyuanli@didiglobal.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions