Commit 3d49307e authored by Benjamin LaHaise's avatar Benjamin LaHaise

fix a bug in kick_iocb that caused it to fail for async iocbs.

parent 7b795458
...@@ -608,7 +608,7 @@ void kick_iocb(struct kiocb *iocb) ...@@ -608,7 +608,7 @@ void kick_iocb(struct kiocb *iocb)
return; return;
} }
if (kiocbTryKick(iocb)) { if (!kiocbTryKick(iocb)) {
long flags; long flags;
spin_lock_irqsave(&ctx->ctx_lock, flags); spin_lock_irqsave(&ctx->ctx_lock, flags);
list_add_tail(&iocb->ki_run_list, &ctx->run_list); list_add_tail(&iocb->ki_run_list, &ctx->run_list);
......
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