]> granicus.if.org Git - spl/commit
spl-mutex: fix race in mutex_exit
authorGvozden Neskovic <neskovic@gmail.com>
Thu, 3 Aug 2017 03:42:58 +0000 (05:42 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 3 Aug 2017 03:42:58 +0000 (20:42 -0700)
commit261a3151e16851304eb3e36af2681d1d1579b08f
treee7862bd56808c2591737ff6eed319dc345f65c24
parent549423c0d4b8176110283a5cf90c6393b2a537d4
spl-mutex: fix race in mutex_exit

Prevent race on accessing kmutex_t when the mutex is
embedded in a ref counted structure.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Closes zfsonlinux/zfs#6401
Closes #637
include/sys/mutex.h