aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe2008-12-09 01:11:22 -0600
committerJens Axboe2008-12-29 01:29:50 -0600
commitabf137dd7712132ee56d5b3143c2ff61a72a5faa (patch)
tree8334f03c598343bb93340f081fcde5ba659b440b /block
parent392ddc32982a5c661dd90dd49a3cb37f1c68b782 (diff)
downloadkernel-common-abf137dd7712132ee56d5b3143c2ff61a72a5faa.tar.gz
kernel-common-abf137dd7712132ee56d5b3143c2ff61a72a5faa.tar.xz
kernel-common-abf137dd7712132ee56d5b3143c2ff61a72a5faa.zip
aio: make the lookup_ioctx() lockless
The mm->ioctx_list is currently protected by a reader-writer lock, so we always grab that lock on the read side for doing ioctx lookups. As the workload is extremely reader biased, turn this into an rcu hlist so we can make lookup_ioctx() lockless. Get rid of the rwlock and use a spinlock for providing update side exclusion. There's usually only 1 entry on this list, so it doesn't make sense to look into fancier data structures. Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions