[GIT PULL] vfs fixes

From: Christian Brauner
Date: Wed Mar 06 2024 - 10:45:50 EST


Hey Linus,

/* Summary */
This contains three fixes:

* Get rid of copy_mc flag in iov_iter which really only makes sense for
the core dumping code so move it out of the generic iov iter code and
make it coredump's problem. See the detailed commit description.
* Revert fs/aio: Make io_cancel() generate completions again
The initial fix here was predicated on the assumption that calling
ki_cancel() didn't complete aio requests. However, that turned out to
be wrong since the two drivers that actually make use of this set
a cancellation function that performs the cancellation correctly.
So revert this change.
* Ensure that the test for IOCB_AIO_RW always happens before the read
from ki_ctx.

/* Testing */
clang: Debian clang version 16.0.6 (19)
gcc: (Debian 13.2.0-7) 13.2.0

All patches are based on v6.8-rc7 and have been sitting in linux-next.
No build failures or warnings were observed.

/* Conflicts */
At the time of creating this PR no merge conflicts were reported from
linux-next and no merge conflicts showed up doing a test-merge with
current mainline.

The following changes since commit 90d35da658da8cff0d4ecbb5113f5fac9d00eb72:

Linux 6.8-rc7 (2024-03-03 13:02:52 -0800)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.8-release.fixes

for you to fetch changes up to a50026bdb867c8caf9d29e18f9fe9e1390312619:

iov_iter: get rid of 'copy_mc' flag (2024-03-06 10:52:12 +0100)

Please consider pulling these changes from the signed vfs-6.8-release.fixes tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.8-release.fixes

----------------------------------------------------------------
Bart Van Assche (2):
Revert "fs/aio: Make io_cancel() generate completions again"
fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

Linus Torvalds (1):
iov_iter: get rid of 'copy_mc' flag

fs/aio.c | 35 ++++++++++++++++++++++-------------
fs/coredump.c | 45 ++++++++++++++++++++++++++++++++++++++++++---
include/linux/uio.h | 16 ----------------
lib/iov_iter.c | 23 -----------------------
4 files changed, 64 insertions(+), 55 deletions(-)