commit | ea66e04fe1a803f6a9ddf31cb999641d4396d67c | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Mon Feb 10 13:57:09 2014 -0700 |
committer | Jens Axboe <axboe@fb.com> | Mon Feb 10 13:57:09 2014 -0700 |
tree | b0b681cc320f71a813af11ba1a7a6d4602f550d1 | |
parent | 782744ef60b7ed47a529d30b9f8e0c528c436fdb [diff] |
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>