[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200205091344.u5c3nnblezzh5xgb@xzhoux.usersys.redhat.com>
Date: Wed, 5 Feb 2020 17:13:44 +0800
From: Murphy Zhou <jencce.kernel@...il.com>
To: linux-ext4@...r.kernel.org, fstests@...r.kernel.org
Subject: ext4 dio RWF_NOWAIT change
Hi,
Kernel commit 378f32bab3714f04c4e0c3aee4129f6703805550
Author: Matthew Bobrowski <mbobrowski@...browski.org>
Date: Tue Nov 5 23:02:39 2019 +1100
ext4: introduce direct I/O write using iomap infrastructure
Changed the logic of dio+RWF_NOWAIT
from:
- if (!inode_trylock(inode)) {
- if (iocb->ki_flags & IOCB_NOWAIT)
- return -EAGAIN;
- inode_lock(inode);
- }
to:
+ if (iocb->ki_flags & IOCB_NOWAIT) {
+ if (!inode_trylock(inode))
+ return -EAGAIN;
+ } else {
+ inode_lock(inode);
+ }
fstests generic/471 expecet EAGAIN on this situation, so it started to
fail since than.
The current logic is similar with other filesystems, but only ext4 fails
on geneirc/471.
Any thoughts how to fix this?
Thanks,
Murphy
Powered by blists - more mailing lists