[asterisk-dev] [Code Review] 4340: FAX: Remove redundant locking.

rmudgett reviewboard at asterisk.org
Thu Jan 15 11:35:14 CST 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4340/
-----------------------------------------------------------

(Updated Jan. 15, 2015, 11:35 a.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 430687


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
-----

  /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/20150115/852ebfea/attachment.html>


More information about the asterisk-dev mailing list