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)
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>

No differences found