diff options
author | Brian Behlendorf <[email protected]> | 2013-01-31 12:59:39 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-31 13:54:59 -0800 |
commit | 6ef94aa67a48792d98b76152661743e42c23a03f (patch) | |
tree | be13daa8d2956061bd2df20471ebc8fbdb5234fa /META | |
parent | de081a2ab4e911d2308b4f4055558f1d666f6b63 (diff) |
Fix tsd_get/set() race with tsd_exit/destroy()
The tsd_exit() and tsd_destroy() functions remove entries from
hash bins without taking the hash bin lock. They do take the
table lock, but tsd_get() and tsd_set() only take the hash bin
lock to allow for maximum concurency.
The result is that while tsd_get() and tsd_set() are traversing
the hash bin list it can be modified by another thread in which
happens to hash to the same value. To avoid this add the needed
locking to tsd_exit() and tsd_destroy().
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #174
Diffstat (limited to 'META')
0 files changed, 0 insertions, 0 deletions