Commit Graph

6 Commits

Author SHA1 Message Date
Ian Kent d584d976a2 acl: conver higher-level helpers to rely on mnt_idmap
JIRA: https://issues.redhat.com/browse/RHEL-33888
Status: Linus

commit 5a6f52d20ce3cd6d30103a27f18edff337da191b
Author: Christian Brauner <brauner@kernel.org>
Date:   Fri Oct 28 09:56:20 2022 +0200

    acl: conver higher-level helpers to rely on mnt_idmap

    Convert an initial portion to rely on struct mnt_idmap by converting the
    high level xattr helpers.

    Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
    Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>

Signed-off-by: Ian Kent <ikent@redhat.com>
2024-10-16 08:29:49 +08:00
Jeff Moyer 5bedb04df3 io_uring: for requests that require async, force it
JIRA: https://issues.redhat.com/browse/RHEL-12076
Conflicts: context difference due to missing commit 5a6f52d20ce3
("acl: conver higher-level helpers to rely on mnt_idmap")

commit aebb224fd4fc7352cd839ad90414c548387142fd
Author: Dylan Yudaken <dylany@meta.com>
Date:   Fri Jan 27 05:52:25 2023 -0800

    io_uring: for requests that require async, force it
    
    Some requests require being run async as they do not support
    non-blocking. Instead of trying to issue these requests, getting -EAGAIN
    and then queueing them for async issue, rather just force async upfront.
    
    Add WARN_ON_ONCE to make sure surprising code paths do not come up,
    however in those cases the bug would end up being a blocking
    io_uring_enter(2) which should not be critical.
    
    Signed-off-by: Dylan Yudaken <dylany@meta.com>
    Link: https://lore.kernel.org/r/20230127135227.3646353-3-dylany@meta.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-11-02 15:31:10 -04:00
Jeff Moyer 3e9fb088c1 __io_setxattr(): constify path
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit e81f574da024f662cf39fc4ff60f464ec6364ac6
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Thu Aug 4 13:13:35 2022 -0400

    __io_setxattr(): constify path
    
    Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-05-05 15:23:44 -04:00
Jeff Moyer 95438cbb8c io_uring: make io_kiocb_to_cmd() typesafe
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit f2ccb5aed7bce1d8b3ed5b3385759a5509663028
Author: Stefan Metzmacher <metze@samba.org>
Date:   Thu Aug 11 09:11:15 2022 +0200

    io_uring: make io_kiocb_to_cmd() typesafe
    
    We need to make sure (at build time) that struct io_cmd_data is not
    casted to a structure that's larger.
    
    Signed-off-by: Stefan Metzmacher <metze@samba.org>
    Link: https://lore.kernel.org/r/c024cdf25ae19fc0319d4180e2298bade8ed17b8.1660201408.git.metze@samba.org
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-04-29 08:43:02 -04:00
Jeff Moyer 8034d812f4 io_uring: kill extra io_uring_types.h includes
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit 27a9d66fec77cff0e32d2ecd5d0ac7ef878a7bb0
Author: Pavel Begunkov <asml.silence@gmail.com>
Date:   Thu Jun 16 13:57:18 2022 +0100

    io_uring: kill extra io_uring_types.h includes
    
    io_uring/io_uring.h already includes io_uring_types.h, no need to
    include it every time. Kill it in a bunch of places, it prepares us for
    following patches.
    
    Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
    Link: https://lore.kernel.org/r/94d8c943fbe0ef949981c508ddcee7fc1c18850f.1655384063.git.asml.silence@gmail.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-04-29 06:19:02 -04:00
Jeff Moyer 15b90bb057 io_uring: move xattr related opcodes to its own file
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit 5e2a18d93fec514fc74f58a6061b74a79764af69
Author: Jens Axboe <axboe@kernel.dk>
Date:   Tue May 24 11:46:43 2022 -0600

    io_uring: move xattr related opcodes to its own file
    
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-04-29 05:14:02 -04:00