On 2020-03-18 2:43 p.m., Thomas Gleixner wrote: > There is no semantical or functional change: > > - completions use the exclusive wait mode which is what swait provides > > - complete() wakes one exclusive waiter > > - complete_all() wakes all waiters while holding the lock which protects > the wait queue against newly incoming waiters. The conversion to swait > preserves this behaviour. > > complete_all() might cause unbound latencies with a large number of waiters > being woken at once, but most complete_all() usage sites are either in > testing or initialization code or have only a really small number of > concurrent waiters which for now does not cause a latency problem. Keep it > simple for now. Seems like it would be worth adding a note for this to the complete_all() doc string. Otherwise developers will not likely find out about this issue and may not keep it as simple as you'd like. Logan
- [patch V2 03/15] usb: gadget: Use completion interface ... Thomas Gleixner
- Re: [patch V2 03/15] usb: gadget: Use completion i... Greg Kroah-Hartman
- [patch V2 08/15] Documentation: Add lock ordering and n... Thomas Gleixner
- Re: [patch V2 08/15] Documentation: Add lock order... Paul E. McKenney
- Re: [patch V2 08/15] Documentation: Add lock o... Thomas Gleixner
- Re: [patch V2 08/15] Documentation: Add lock order... Davidlohr Bueso
- Re: [patch V2 08/15] Documentation: Add lock order... Jonathan Corbet
- Re: [patch V2 08/15] Documentation: Add lock o... Thomas Gleixner
- [patch V2 10/15] sched/swait: Prepare usage in completi... Thomas Gleixner
- [patch V2 11/15] completion: Use simple wait queues Thomas Gleixner
- Re: [patch V2 11/15] completion: Use simple wait q... Logan Gunthorpe
- Re: [patch V2 11/15] completion: Use simple wait q... Joel Fernandes
- Re: [patch V2 11/15] completion: Use simple wa... Thomas Gleixner
- Re: [patch V2 11/15] completion: Use simple wait q... Greg Kroah-Hartman
- Re: [patch V2 11/15] completion: Use simple wait q... Linus Torvalds
- Re: [patch V2 11/15] completion: Use simple wait q... Julian Calaby
- Re: [patch V2 11/15] completion: Use simple wa... Christoph Hellwig
- Re: [patch V2 11/15] completion: Use simple wait q... Davidlohr Bueso
- Re: [patch V2 00/15] Lock ordering documentation and an... Davidlohr Bueso
- [PATCH 16/15] rcuwait: Get rid of stale name comment Davidlohr Bueso
- [PATCH 17/15] rcuwait: Inform rcuwait_wake_up() us... Davidlohr Bueso