Re: [RFC][PATCH] make global bitlock waitqueues per-node

From: Linus Torvalds
Date: Wed Dec 21 2016 - 14:50:56 EST


On Wed, Dec 21, 2016 at 11:01 AM, Nicholas Piggin <npiggin@xxxxxxxxx> wrote:
> Peter's patch is less code and in that regard a bit nicer. I tried
> going that way once, but I just thought it was a bit too sloppy to
> do nicely with wait bit APIs.

So I have to admit that when I read through your and PeterZ's patches
back-to-back, yours was easier to understand.

PeterZ's is smaller but kind of subtle. The whole "return zero from
lock_page_wait() and go around again" and the locking around that
isn't exactly clear. In contrast, yours has the obvious waitqueue
spinlock.

I'll think about it. And yes, it would be good to have more testing,
but at the same time xmas is imminent, and waiting around too much
isn't going to help either..

Linus