idr: fix idr_pre_get() locking description
authorNaohiro Aota <naota@elisp.net>
Tue, 26 Oct 2010 21:23:03 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:18 +0000 (16:52 -0700)
commit066a9be6c0124edc9527088231f03c6236be375d
tree49350239a1505bb08ed67a19ad2a15466f7b7526
parent66f1991bc2357436498ac990302b6f5bf403d7ef
idr: fix idr_pre_get() locking description

Despite the idr_pre_get() kernel-doc, there are some cases where you can
call idr_pre_get() from within locked regions.  Add a description for such
cases.

See also: http://lkml.org/lkml/2010/9/16/462

[akpm@linux-foundation.org: cleanups, grammatical fixes]
Signed-off-by: Naohiro Aota <naota@elisp.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c