Linux io-uring development
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Aditya Prakash Srivastava <aditya.ansh182@gmail.com>,
	Jens Axboe <axboe@kernel.dk>,
	Christian Brauner <brauner@kernel.org>,
	Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Jan Kara <jack@suse.cz>,
	io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Aditya Prakash Srivastava <aditya.ansh182@gmail.com>
Subject: Re: [PATCH 0/2] io_uring: add removexattr and listxattr support
Date: Mon, 20 Jul 2026 11:25:48 -0400	[thread overview]
Message-ID: <87fr1d1y4j.fsf@mailhost.krisman.be> (raw)
In-Reply-To: <20260720072213.2719-1-aditya.ansh182@gmail.com>

Aditya Prakash Srivastava <aditya.ansh182@gmail.com> writes:

> This series completes io_uring's xattr feature parity by adding support
> for the remaining four xattr operations:
> - IORING_OP_REMOVEXATTR
> - IORING_OP_FREMOVEXATTR
> - IORING_OP_LISTXATTR
> - IORING_OP_FLISTXATTR

It is much cheaper to open a fixed file and use the FD variant of these
operations in io_uring that it is with a syscall.  Could we just live
with IORING_OP_FLISTXATTR/IORING_OP_FREMOVEXATTR?

> Historically, applications looking to achieve zero-blocking metadata
> management had to fall back to synchronous threads to list or prune
> extended attributes. This is particularly problematic for highly secure
> layered filesystems, active monitoring engines, or container runtimes
> utilizing namespace isolation xattrs.

Please drop the LLM explanation.  Why is this a problem for
"highly-secure layered filesystems" in particular?  This enables xattr
operations in an asynchronous fashion. period.

> To support this cleanly and reuse existing optimal VFS-layer code paths:
> - Patch 1 makes the necessary listxattr/removexattr VFS-layer helpers
>   non-static and exposes them in fs/internal.h.
> - Patch 2 implements the io_uring operational support (opcodes, opdefs,
>   preparation, and issue handlers) and invokes these exposed helpers.
>
> This approach ensures zero code duplication, robust filename handling,
> and maintains design consistency across both subsystems.
>
> Testing
> =======
> A self-contained test program is provided below

Please turn it into a proper liburing testcase.
-- 
Gabriel Krisman Bertazi

      parent reply	other threads:[~2026-07-20 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20  7:22 [PATCH 0/2] io_uring: add removexattr and listxattr support Aditya Prakash Srivastava
2026-07-20  7:22 ` [PATCH 1/2] fs: make listxattr and removexattr helpers non-static Aditya Prakash Srivastava
2026-07-20  7:22 ` [PATCH 2/2] io_uring: add removexattr and listxattr support Aditya Prakash Srivastava
2026-07-20 15:25 ` Gabriel Krisman Bertazi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fr1d1y4j.fsf@mailhost.krisman.be \
    --to=krisman@suse.de \
    --cc=aditya.ansh182@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=io-uring@vger.kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox