mutex: clear mutex when removed
authorJens Axboe <axboe@fb.com>
Mon, 24 Oct 2016 16:49:48 +0000 (10:49 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 24 Oct 2016 16:49:48 +0000 (10:49 -0600)
commit4e1cc8e6ddf90e4e2fa5eab27cca4110e4dce1bb
tree7aa483c2cfcb5e6503502664077ecf719d4ea63e
parentca0122d822ea7dd573f05ca4cf43c5d0ff9f4adb
mutex: clear mutex when removed

This ensures that any attempt to grab it after it has been removed
will trigger an assert, instead of just silently hanging.

Signed-off-by: Jens Axboe <axboe@fb.com>
mutex.c