From: Zach Brown Date: Thu, 15 Jul 2010 19:34:33 +0000 (-0700) Subject: RDS/IB: protect the list of IB devices X-Git-Tag: v2.6.37-rc1~147^2~499^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea819867b788728aca60717e4fdacb3df771f670;p=pandora-kernel.git RDS/IB: protect the list of IB devices The RDS IB device list wasn't protected by any locking. Traversal in both the get_mr and FMR flushing paths could race with additon and removal. List manipulation is done with RCU primatives and is protected by the write side of a rwsem. The list traversal in the get_mr fast path is protected by a rcu read critical section. The FMR list traversal is more problematic because it can block while traversing the list. We protect this with the read side of the rwsem. Signed-off-by: Zach Brown --- Reading git-diff-tree failed