From: Thomas Hellstrom Date: Tue, 6 Nov 2012 11:31:50 +0000 (+0000) Subject: drm/ttm, drm/vmwgfx: Use RCU locking for object lookups v3 X-Git-Tag: v3.8-rc1~82^2~148 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdad05216c2b2edfe92a9f87d6ae51aab277f3b2;p=pandora-kernel.git drm/ttm, drm/vmwgfx: Use RCU locking for object lookups v3 The mostly used lookup+get put+potential_destroy path of TTM objects is converted to use RCU locks. This will substantially decrease the amount of locked bus cycles during normal operation. Since we use kfree_rcu to free the objects, no rcu synchronization is needed at module unload time. v2: Don't touch include/linux/kref.h v3: Adapt to kref_get_unless_zero return value change Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed