Re: [PATCH v4 1/5] rwsem: check the lock before cpmxchg in down_write_trylock

From: Alex Shi
Date: Wed Jun 26 2013 - 21:33:01 EST



The following line should be added head of commit log on patches 1~4. :)

From: Alex Shi <alex.shi@xxxxxxxxx>


> Cmpxchg will cause the cacheline bouning when do the value checking,
> that cause scalability issue in a large machine (like a 80 core box).
>
> So a lock pre-read can relief this contention.
>
> Signed-off-by: Alex Shi <alex.shi@xxxxxxxxx>


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