diff options
author | Alexander Gordeev <[email protected]> | 2011-01-12 17:00:53 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-13 08:03:20 -0800 |
commit | 2a5cd6e2fb1984cc83f08b3645bf394830ac7825 (patch) | |
tree | 14082324f971c3d8af26840caf9d68a4524269b7 /net/unix/sysctl_net_unix.c | |
parent | 083e58666ff5b3c5750d9a5c0560018b03cfb4b2 (diff) |
pps: make idr lock a mutex and protect idr_pre_get
Now pps_idr_lock is never used in interrupt context so we can replace
spin_lock_irq/spin_unlock_irq with plain spin_lock/spin_unlock. But
there is also a potential race condition when someone can steal an id
which was allocated by idr_pre_get before it is used. So convert spin
lock to mutex and protect the whole id generation process.
Signed-off-by: Alexander Gordeev <[email protected]>
Cc: Rodolfo Giometti <[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