Re: [PATCH 1/2] brw_mutex: big read-write mutex

From: Linus Torvalds
Date: Tue Oct 16 2012 - 15:57:11 EST


On Mon, Oct 15, 2012 at 12:10 PM, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> This patch adds the new sleeping lock, brw_mutex. Unlike rw_semaphore
> it allows multiple writers too, just "read" and "write" are mutually
> exclusive.

So those semantics just don't sound sane. It's also not what any kind
of normal "rw" lock ever does.

So can you explain why these particular insane semantics are useful,
and what for?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/