Commit e410854
sr_module_change_subscribe URGE locks for Ext SHM
in sr_module_change_subscribe(), the change sub Ext SHM lock should be
acquired in a writer preferred manner (WRITE_URGE).
Adding a change subscr holds the WRITE lock for a very short duration.
But, a change_sub READ lock is held for much longer, because the oper
notify diff needs to be determined correctly based on the subscriptions
present.
So, for modules with frequent writes, subscription can fail due to
starvation.1 parent bdbe383 commit e410854
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6514 | 6514 | | |
6515 | 6515 | | |
6516 | 6516 | | |
6517 | | - | |
6518 | | - | |
| 6517 | + | |
| 6518 | + | |
6519 | 6519 | | |
6520 | 6520 | | |
6521 | 6521 | | |
| |||
6571 | 6571 | | |
6572 | 6572 | | |
6573 | 6573 | | |
6574 | | - | |
6575 | | - | |
| 6574 | + | |
| 6575 | + | |
6576 | 6576 | | |
6577 | 6577 | | |
6578 | 6578 | | |
| |||
0 commit comments