]> git.baikalelectronics.ru Git - kernel.git/commit
rds: rcu-ize rds_ib_get_device()
authorChris Mason <chris.mason@oracle.com>
Fri, 23 Apr 2010 01:59:15 +0000 (21:59 -0400)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:12:28 +0000 (18:12 -0700)
commit753fd6a0041d4fd7b663b9bd77eb4f08aec02ef7
treef979329a2b5bfb0c92fc83e951d9ac7654c4ba78
parent4b169616be02cca59fe1e86946e7f26468157d8a
rds: rcu-ize rds_ib_get_device()

rds_ib_get_device is called very often as we turn an
ip address into a corresponding device structure.  It currently
take a global spinlock as it walks different lists to find active
devices.

This commit changes the lists over to RCU, which isn't very complex
because they are not updated very often at all.

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