diff options
author | 2025-04-01 16:35:34 -0700 | |
---|---|---|
committer | 2025-04-11 09:13:28 -0700 | |
commit | 1a931c4f5e6862e61a4b130cb76b422e1415f644 (patch) | |
tree | 22caef628d788fe46b59e34684263e426825b1fb /scripts/lib/kdoc/kdoc_output.py | |
parent | igc: cleanup PTP module if probe fails (diff) | |
download | wireguard-linux-1a931c4f5e6862e61a4b130cb76b422e1415f644.tar.xz wireguard-linux-1a931c4f5e6862e61a4b130cb76b422e1415f644.zip |
igc: add lock preventing multiple simultaneous PTM transactions
Add a mutex around the PTM transaction to prevent multiple transactors
Multiple processes try to initiate a PTM transaction, one or all may
fail. This can be reproduced by running two instances of the
following:
$ sudo phc2sys -O 0 -i tsn0 -m
PHC2SYS exits with:
"ioctl PTP_OFFSET_PRECISE: Connection timed out" when the PTM transaction
fails
Note: Normally two instance of PHC2SYS will not run, but one process
should not break another.
Fixes: a90ec8483732 ("igc: Add support for PTP getcrosststamp()")
Signed-off-by: Christopher S M Hall <christopher.s.hall@intel.com>
Reviewed-by: Corinna Vinschen <vinschen@redhat.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions