aboutsummaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 955c5241a8f2..4ab67e8cb776 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1285,7 +1285,7 @@ static long read_events(struct kioctx *ctx, long min_nr, long nr,
1285 struct io_event __user *event, 1285 struct io_event __user *event,
1286 struct timespec __user *timeout) 1286 struct timespec __user *timeout)
1287{ 1287{
1288 ktime_t until = { .tv64 = KTIME_MAX }; 1288 ktime_t until = KTIME_MAX;
1289 long ret = 0; 1289 long ret = 0;
1290 1290
1291 if (timeout) { 1291 if (timeout) {
@@ -1311,7 +1311,7 @@ static long read_events(struct kioctx *ctx, long min_nr, long nr,
1311 * the ringbuffer empty. So in practice we should be ok, but it's 1311 * the ringbuffer empty. So in practice we should be ok, but it's
1312 * something to be aware of when touching this code. 1312 * something to be aware of when touching this code.
1313 */ 1313 */
1314 if (until.tv64 == 0) 1314 if (until == 0)
1315 aio_read_events(ctx, min_nr, nr, event, &ret); 1315 aio_read_events(ctx, min_nr, nr, event, &ret);
1316 else 1316 else
1317 wait_event_interruptible_hrtimeout(ctx->wait, 1317 wait_event_interruptible_hrtimeout(ctx->wait,