[L] Change in osmo-e1d[master]: dahdi_trunkdev: add SD-RI-PLL software clock recovery
Attention is currently required from: Hoernchen, ale-leehrtz, tnt. laforge has posted comments on this change by ale-leehrtz. ( https://gerrit.osmocom.org/c/osmo-e1d/+/44232?usp=email ) Change subject: dahdi_trunkdev: add SD-RI-PLL software clock recovery ...................................................................... Patch Set 2: (1 comment) File src/dahdi_trunkdev.c: https://gerrit.osmocom.org/c/osmo-e1d/+/44232/comment/4ada4e5e_d3071833?usp=... : PS2, Line 362: pll->csv = fopen(path, "a"); this is a (buffered, but still fundamentally) blocking use of a file descriptor. If the storage or I/O subsystem is not fast enough (e.g. a lot of file/disk I/O on the system), the fprintf statements will block the entire osmo-e1d and make sure you loose/drop all kinds of data. A proper implementation of writing to a file from a non-blocking event-loop driven process like osmo-e1d would have to use non-blocking writes only. you could use talloc_asprintf() to print your lines to a heap buffer, and then enqueue those buffers to the write queue of a file descriptor. I think we *might* accept this patch as-is, but probably should make sure that the csv logging is treated as an experimental feature with known potential problems in both documentation and also a warning log line printed during start-up if e1i->dahdi_trunkdev.pll.log_file is actually configued by the user. -- To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/44232?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-e1d Gerrit-Branch: master Gerrit-Change-Id: I20e0d62275c8422e3b272630dc52cebd80b66a15 Gerrit-Change-Number: 44232 Gerrit-PatchSet: 2 Gerrit-Owner: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: tnt <tnt@246tNt.com> Gerrit-Attention: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Attention: tnt <tnt@246tNt.com> Gerrit-Attention: Hoernchen <ewild@sysmocom.de> Gerrit-Comment-Date: Fri, 04 Dec 2026 08:22:38 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
participants (1)
-
laforge