Re: [lng-odp] [API-NEXT PATCH v3 5/5] linux-gen: sched: new ordered lock implementation

2016-12-02 Thread Elo, Matias (Nokia - FI/Espoo)
The test above should be open code since it's a validity check on the call. The current code treats odp_schedule_order_lock/unlock as no-ops if we aren't running in an ordered context as that permits queue types to be moved from say ordered to atomic without having to change the application. The

Re: [lng-odp] [API-NEXT PATCH v3 5/5] linux-gen: sched: new ordered lock implementation

2016-12-01 Thread Bill Fischofer
On Thu, Dec 1, 2016 at 5:37 AM, Matias Elo wrote: > Implement ordered locks using per lock atomic counters. The counter values > are compared to the queue’s atomic context to guarantee ordered locking. > Compared to the previous implementation this enables parallel processing of > ordered events o