On Mon, Jun 04 2018 at 3:58pm -0400, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote: > On Mon, Jun 04, 2018 at 12:39:11PM -0700, Linus Torvalds wrote: > > On Mon, Jun 4, 2018 at 12:37 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote: > > > > > > Would it help if we did s/swake_up/swake_up_one/g ? > > > > > > Then there would not be an swake_up() to cause confusion. > > > > Yes, i think that would already be a big improvement, forcing people > > to be aware of the exclusive nature. > > The below will of course conflict with the merge request under > discussion. Also completely untested. No worries there since I'll be resubmitting dm-writecache for 4.19. (Mikulas would like to still use swait for the dm-writecache's endio thread, since endio_thread_wait only has a single waiter. I told him to convert the other 2, benchmark it with still swait in endio path, then convert the one used in endio, benchmark will all converted and we'd revisit if there is a compelling performance difference. But even then I'm not sure I want DM on the list of swait consumers... to be continued) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel