diff options
author | Alex Dubov <[email protected]> | 2011-01-12 17:01:04 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-13 08:03:22 -0800 |
commit | d8256d487840f9c2c372f8fc615a5d378bc133f1 (patch) | |
tree | c9b17bcf583e047ecb55bf775b55053c85b21935 /net/unix/sysctl_net_unix.c | |
parent | 8930c8aa740b12ad69f44a35137bcc39bfa3dc41 (diff) |
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions