[asterisk-dev] [Code Review] 4340: FAX: Remove redundant locking.
rmudgett
reviewboard at asterisk.org
Wed Jan 14 15:19:16 CST 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4340/
-----------------------------------------------------------
(Updated Jan. 14, 2015, 3:19 p.m.)
Review request for Asterisk Developers.
Changes
-------
Remove red blobs in some neighboring lines.
Repository: Asterisk
Description
-------
When FAX was developed, apparently the faxregistry.container used to be a linked list that was converted to an ao2 container. Some of the replacement ao2 container operations still had explicit lock/unlocks around them.
Three off nominal code paths in res_fax.c and res_fax_spandsp.c unlock the channel even though the routine did not lock the channel and other code paths in the routine do not unlock the channel.
Diffs (updated)
-----
/branches/13/res/res_fax_spandsp.c 430609
/branches/13/res/res_fax.c 430609
Diff: https://reviewboard.asterisk.org/r/4340/diff/
Testing
-------
The testsuite fax tests still pass.
Thanks,
rmudgett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150114/b29b70fa/attachment.html>
More information about the asterisk-dev
mailing list