diff options
author | Waiman Long <Waiman.Long@hp.com> | 2013-09-12 10:55:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 09:25:23 -0700 |
commit | 1812997720ab90d029548778c55d7315555e1fef (patch) | |
tree | 25e3bccce50977e9199df4ee0445a3af9e5da708 /include/uapi/linux/virtio_rng.h | |
parent | 1370e97bb2eb1ef2df7355204e5a4ba13e12b861 (diff) | |
download | op-kernel-dev-1812997720ab90d029548778c55d7315555e1fef.zip op-kernel-dev-1812997720ab90d029548778c55d7315555e1fef.tar.gz |
dcache: get/release read lock in read_seqbegin_or_lock() & friend
This patch modifies read_seqbegin_or_lock() and need_seqretry() to use
newly introduced read_seqlock_excl() and read_sequnlock_excl()
primitives so that they won't change the sequence number even if they
fall back to take the lock. This is OK as no change to the protected
data structure is being made.
It will prevent one fallback to lock taking from cascading into a series
of lock taking reducing performance because of the sequence number
change. It will also allow other sequence readers to go forward while
an exclusive reader lock is taken.
This patch also updates some of the inaccurate comments in the code.
Signed-off-by: Waiman Long <Waiman.Long@hp.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux/virtio_rng.h')
0 files changed, 0 insertions, 0 deletions