Re: [PATCH] anobjrmap 9 priority mjb tree

From: Hugh Dickins
Date: Mon Apr 12 2004 - 14:12:40 EST


On Mon, 12 Apr 2004, Martin J. Bligh wrote:
>
> If it were just a list, maybe RCU would be appropriate. It might be
> rather write-heavy though ? I think I played with an rwsem instead
> of a sem in the past too (though be careful if you try this, as for
> no good reason the return codes are inverted ;-()

Yes, I think all the common paths have to write, in case the
uncommon paths (truncation and swapout) want to read: the wrong
way round for any kind of read-write optimization, isn't it?

Hugh

-
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/