From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC7D83C1401 for ; Tue, 21 Jul 2026 08:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784624123; cv=none; b=ZeoDEpqrzm34YqXUN1aNsthj50NE5yGq9DuemmY47A2STMpbsGVSl4u1Ad5DcjV/lUoNh9Qn2Je2lyPOqSn83ITv+VAzqmV2K59jFfWC0E/IkEoGkmfOXvuy+SYBwLmQ9D1RiEAsIz1OgFA7oIk4GFZ5A2xn39Ut2FgXSf8a3kM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784624123; c=relaxed/simple; bh=9v45zTVeTCX7fIaTjQSky2XyjxWftJs8YLfqZCwJ++k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YKNQLPPpli1Kh3l+dbBb+ClHrWTN50ilga9+jWg9bnh0NaOIO2iNES74eaC60CxHr4p7oNFJVvDeT6BK/4mSXvcjcqdioWLr94FOacM0xA8o+JjLfeAsSRqBwj0vJ3OS3xziizPWBgRM/nUzlIqrRxG54zs4fX/w+U/5JeIQsqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gKqY95Ei; arc=none smtp.client-ip=209.85.216.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gKqY95Ei" Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-38d489b6b71so10456820a91.0 for ; Tue, 21 Jul 2026 01:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784624121; x=1785228921; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=DvFeyjLJ8AJSuF4p/D9KBNAj9grUIgBOggYUeLP/dVM=; b=gKqY95EiR6hjrSnIVln9pht6Gh9eQF1Q3vnjxSPMY64eXN1mAHIy9xrv/8VEWDs6bQ aMyZYoRuJW6aUjCpfF2BFNnHO1KqRZOV2yAhWLoa6SQ3pj9bUMemkGi7z6qrpftw9cPE mTGbfitG9kO/ecCWZ3Loeqm6M+LD6GKBiaGgyHRvG5xePYQ4yI7IoMHDJVpFmns2F1QE p24ICSBM1FIFCVOxVp2E+nUik9XnrBVVLwJ8SRX3cbV1muRFV/YdNCpTU9SQqSffxCfk jl7nq1i0x8u06B8A0HzapnV2o97C1GIurSeyGrXH/c3BO+Cj0eMq1RhtdOzj1pr3eI/S E+FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784624121; x=1785228921; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=DvFeyjLJ8AJSuF4p/D9KBNAj9grUIgBOggYUeLP/dVM=; b=OEbcCpbi1cbSeH8lUScVBtkk5X8y8fsXDRI92s4wf0DrHqESAjvKqoAVFHQZtLok8A 9qCU6FAXWpgX/0NIoMghtRLyREixskahXkriONLO4xq4u+/InTljjihtRwcjbWRbhuCc G53keZs5VBIwD5T17BlnPBluQenxzVUGZ07nhoqk3HHNJTfLfR/7WBcjgorZjcaivsui VMXABu0pxKFpY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624035637.30.1784624120976; Tue, 21 Jul 2026 01:55:20 -0700 (PDT) Received: from cs-1047136853211-default.asia-southeast1-b.c.z168d0f9edf9bc766-tp.internal (8.99.126.34.bc.googleusercontent.com. [34.126.99.8]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31429cf22b3sm45463137eec.0.2026.07.21.01.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 01:55:20 -0700 (PDT) From: Aditya Prakash Srivastava To: Jens Axboe , Christian Brauner , Alexander Viro Cc: Jan Kara , io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Aditya Prakash Srivastava Subject: [PATCH v2 0/2] io_uring: add fremovexattr and flistxattr support Date: Tue, 21 Jul 2026 08:54:56 +0000 Message-ID: <20260721085458.2716-1-aditya.ansh182@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series completes io_uring's FD-based xattr operations by adding support for: - IORING_OP_FREMOVEXATTR - IORING_OP_FLISTXATTR This allows asynchronous xattr removal and listing. Support is restricted to FD-based operations on registered files to avoid path lookup overhead. Corresponding test suite modifications have been integrated into the official liburing test suite (test/xattr.c) and verified to pass successfully. A corresponding liburing patch implementing these prep helpers, sanitizers, and test cases is following this kernel series. - Patch 1 makes the necessary VFS-layer list/remove helpers non-static and declares them in fs/internal.h. - Patch 2 implements the io_uring operational support (opcodes, opdefs, preparation, and issue handlers) and invokes these exposed helpers. Changes since v1: - Omit path-based opcodes to prioritize optimal FD-based variants. - Limit exported VFS helpers to only file_listxattr and file_removexattr. - Rewrite standalone test program into a standard liburing testcase. Aditya Prakash Srivastava (2): fs: make file_listxattr and file_removexattr helpers non-static io_uring: add fremovexattr and flistxattr support fs/internal.h | 2 + fs/xattr.c | 10 ++-- include/uapi/linux/io_uring.h | 2 + io_uring/opdef.c | 18 +++++++ io_uring/xattr.c | 74 +++++++++++++++++++++++++++++ io_uring/xattr.h | 6 +++ tools/include/uapi/linux/io_uring.h | 13 +++++ 7 files changed, 119 insertions(+), 6 deletions(-) -- 2.47.3