summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 8be7a24aa10e..fe06ca43e832 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2397,10 +2397,8 @@ static inline void io_init_req_batch(struct req_batch *rb)
static void io_req_free_batch_finish(struct io_ring_ctx *ctx,
struct req_batch *rb)
{
- if (rb->task) {
+ if (rb->task)
io_put_task(rb->task, rb->task_refs);
- rb->task = NULL;
- }
if (rb->ctx_refs)
percpu_ref_put_many(&ctx->refs, rb->ctx_refs);
}