X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Faio.c;h=ebb6a22e4e1b36dfb530fba6406aaa42b5a9c14b;hb=5883f57ca0008ffc93e09cbb9847a1928e50c6f3;hp=7f54f43b8f7c9557d652e741ecdc544b207b73d3;hpb=6445ced8670f37cfc2c5e24a9de9b413dbfc788d;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/aio.c b/fs/aio.c index 7f54f43b8f7c..ebb6a22e4e1b 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -520,7 +520,7 @@ static inline void really_put_req(struct kioctx *ctx, struct kiocb *req) ctx->reqs_active--; if (unlikely(!ctx->reqs_active && ctx->dead)) - wake_up(&ctx->wait); + wake_up_all(&ctx->wait); } static void aio_fput_routine(struct work_struct *data) @@ -1229,7 +1229,7 @@ static void io_destroy(struct kioctx *ioctx) * by other CPUs at this point. Right now, we rely on the * locking done by the above calls to ensure this consistency. */ - wake_up(&ioctx->wait); + wake_up_all(&ioctx->wait); put_ioctx(ioctx); /* once for the lookup */ }