VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Jens Axboe <axboe@kernel.dk> 2020-01-29 13:46:44 -0700 committer: Jens Axboe <axboe@kernel.dk> 2020-01-29 13:46:44 -0700 commit: f86cd20c9454847a524ddbdcdec32c0380ed7c9b parent: 75c6a03904e0dd414a4d99a3072075cb5117e5bc
Commit Summary:
io_uring: fix linked command file table usage
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index f7eb577ccd2d..cb60a42b9fdf 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -476,8 +476,7 @@ next:
 		if (work->flags & IO_WQ_WORK_CB)
 			work->func(&work);
 
-		if ((work->flags & IO_WQ_WORK_NEEDS_FILES) &&
-		    current->files != work->files) {
+		if (work->files && current->files != work->files) {
 			task_lock(current);
 			current->files = work->files;
 			task_unlock(current);