]> git.baikalelectronics.ru Git - kernel.git/commit
rds: switch to rwlock on bind_lock
authorChris Mason <chris.mason@oracle.com>
Wed, 21 Apr 2010 20:04:43 +0000 (13:04 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:12:26 +0000 (18:12 -0700)
commitb4a60044b58eda02dcdcf3884e59289884f7d410
tree36c682f96789118bebe0c14e3a5a5353b184a22b
parent51f77ada90ef75d8ce532997bc0812383ca28d5a
rds: switch to rwlock on bind_lock

The bind_lock is almost entirely readonly, but it gets
hammered during normal operations and is a major bottleneck.

This commit changes it to an rwlock, which takes it from 80%
of the system time on a big numa machine down to much lower
numbers.

A better fix would involve RCU, which is done in a later commit

Signed-off-by: Chris Mason <chris.mason@oracle.com>
net/rds/bind.c