]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux: remove locks around callout_drain in timerfd_close()
authorshu <ankohuu@outlook.com>
Wed, 3 Feb 2021 19:10:58 +0000 (19:10 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 13 Feb 2022 23:09:31 +0000 (23:09 +0000)
commita95b05950a2f058a00b1c96a346825622fb976d9
tree16b1f954a189111cd9ecd4f0e0b945ee6b57e116
parent89847f7e04a394300775b7e20df371f03a98c545
linux: remove locks around callout_drain in timerfd_close()

The lock around callout_drain() is unnecessary and may cause
deadlock when one closes a timer descriptor during timer execution.

Reviewed By: delphij
Submitted By: ankohuu_outlook.com (Shunchao Hu)
Differential Revision: https://reviews.freebsd.org/D28148

(cherry picked from commit 14c40d2c292deff44be5591add7fdad5f9b371aa)
sys/compat/linux/linux_event.c