Fix issue with td->mutex being used-after-free
authorJens Axboe <axboe@fb.com>
Mon, 10 Feb 2014 20:57:09 +0000 (13:57 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 10 Feb 2014 20:57:09 +0000 (13:57 -0700)
commitea66e04fe1a803f6a9ddf31cb999641d4396d67c
treeb0b681cc320f71a813af11ba1a7a6d4602f550d1
parent782744ef60b7ed47a529d30b9f8e0c528c436fdb
Fix issue with td->mutex being used-after-free

Depending on how the OS schedules the threads, it's not necessarily
safe to immediately free a mutex after we have been woken up.
Remove the td->mutex freeing to normal cleanup after the job is done.

Reported-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c