Thread (22 messages) 22 messages, 5 authors, 2017-04-25

Re: [PATCH 2/8] nowait aio: Introduce RWF_NOWAIT

From: Christoph Hellwig <hch@infradead.org>
Date: 2017-04-19 06:39:31
Also in: linux-block, linux-btrfs, linux-ext4, linux-fsdevel, linux-xfs

 	}
 
-
 	/* prevent overflows */
Weird whitespace change.
quoted hunk ↗ jump to hunk
@@ -1593,6 +1593,11 @@ static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
 	}
 
 	req->common.ki_flags |= iocb_rw_flags(iocb->aio_rw_flags);
+	if ((req->common.ki_flags & IOCB_NOWAIT) &&
+	    !(req->common.ki_flags & IOCB_DIRECT)) {
+			ret = -EINVAL;
+			goto out_put_req;
+		}
Wrong indentation.  Also I think this should be EOPNOTSUPP here.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help