[PATCH v4 0/2] locking/qrwlock: More optimizations in qrwlock

From: Waiman Long
Date: Wed Jun 17 2015 - 22:21:23 EST


v3->v4:
- Remove the unnecessary _QW_WMASK check in
queue_read_lock_slowpath().

v2->v3:
- Fix incorrect commit log message in patch 1.

v1->v2:
- Add microbenchmark data for the second patch

This patch set contains 2 patches on qrwlock. The first one is to
optimize the interrupt context reader slowpath. The second one is
to optimize the writer slowpath.

Waiman Long (2):
locking/qrwlock: Better optimization for interrupt context readers
locking/qrwlock: Don't contend with readers when setting _QW_WAITING

include/asm-generic/qrwlock.h | 4 ++--
kernel/locking/qrwlock.c | 41 +++++++++++++++++++++++++++++++----------
2 files changed, 33 insertions(+), 12 deletions(-)

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