From: Alex Dubov Date: Thu, 13 Jan 2011 01:01:04 +0000 (-0800) Subject: memstick: avert possible race condition between idr_pre_get and idr_get_new X-Git-Tag: v2.6.38-rc1~274 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8256d487840f9c2c372f8fc615a5d378bc133f1;p=pandora-kernel.git memstick: avert possible race condition between idr_pre_get and idr_get_new Implement the usual pattern around idr_pre_get() and idr_get_new() to handlethe situation where another thread concurrently steals this thread's idr_pre_get() preallocation. Signed-off-by: Alex Dubov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed