Commit d3eee8ac authored by Benjamin LaHaise's avatar Benjamin LaHaise

sync iocbs need to actually wake_up_process the waiter (as spotted by Suparna).

parent 343eec3c
...@@ -552,6 +552,9 @@ int aio_complete(struct kiocb *iocb, long res, long res2) ...@@ -552,6 +552,9 @@ int aio_complete(struct kiocb *iocb, long res, long res2)
iocb->ki_users--; iocb->ki_users--;
ret = (0 == iocb->ki_users); ret = (0 == iocb->ki_users);
spin_unlock_irq(&ctx->ctx_lock); spin_unlock_irq(&ctx->ctx_lock);
/* sync iocbs put the task here for us */
wake_up_process(iocb->ki_user_obj);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment