Whamcloud - gitweb
LU-16695 llite: switch to ki_flags from f_flags 93/50493/11
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 31 Mar 2023 21:33:40 +0000 (17:33 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Dec 2023 12:19:46 +0000 (12:19 +0000)
commitdad7079dfd9d1e17af15a2df67e76605db677e84
tree6d0b749fba5ce195661c4645ef5b3a5204c3b0fe
parent27e1ecb19cef4f04ab56727f2382cf228b368ad2
LU-16695 llite: switch to ki_flags from f_flags

There are possible races between IO checking f_flags and
fcntl changing f_flags.  The kernel fixed most of these by
copying most of the file flags in to the iocb.

Let's follow on and use those copied flags.  This also lets
us change them if we want, since they're now local to the
specific IO.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Signed-off-by: Guillaume Courrier <guillaume.courrier@cea.fr>
Change-Id: Ib98cccec0e7888865ec10dc5f76f1d9917a1aef7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50493
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/rw.c
lustre/llite/rw26.c
lustre/llite/vvp_io.c