From d8256d487840f9c2c372f8fc615a5d378bc133f1 Mon Sep 17 00:00:00 2001 From: Alex Dubov Date: Wed, 12 Jan 2011 17:01:04 -0800 Subject: [PATCH] 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-format-patch failed