From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (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 AE116378D9A for ; Sat, 14 Mar 2026 14:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773500368; cv=none; b=Jrfd1c0ZNKj+OkcndcbXNOgUQpy3petWOTdQwFOvQWkc2K8+sI0hDFlOoz39PgsBgczDyjmjMaUDccZPmmkfDlll9g58XqHc8iRAPEXA4Wfw6Ig8UFfhF9noSXcKrp2aZiWoLQ6G+nnujB47NeI7/ntGVZlQDHPnpGbzsbKKDBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773500368; c=relaxed/simple; bh=KLcSNOqCFDXvaHVoMeWHpX2akl520aXV25bX+lXYjz0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=bYFOWfVDRp0ewgeMW86pJ+DuYbDpPoopSk+Tmuck8iD1Q886BbzQBlyULcd8V6rs/HkenvUFgH0taZJW6N3gDHIL1/Uwd10BaV62ganGZpbHCkViRRXGtDZWNdlbx/61uTO10oeEaLAwsrmhzre/xX8GxupaI/pZMz2WIqxcuqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=BuxjKJXi; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="BuxjKJXi" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-662f30d3f1fso2431242eaf.1 for ; Sat, 14 Mar 2026 07:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1773500364; x=1774105164; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/azV0psF+bS6fSEg6CZibIvOravefm+Ono+X2PE8EVE=; b=BuxjKJXi2+4eOEqBCQr3V/Oiw8Y8eECbM7aACMyBettHvrtxGVch1LA7w9oTWScE9x jXUQ8eYQ644o0Er4haS0v/KXweLM4IBfLWBIoRmYQwzwxo3Wl8UTdx1HVYGGjJy5n7XS C9grTZZlC43fFvapieA5XwHv6XRnMl9PzJdR+TFMvNmPIvczaLmnQRVzTf744TuEM9X+ TBnnXURi/FZRwkhHwe85beLGvDOxVyN4z5oVH6w54k2mi5HSNpSiC30fDzPqCMKoDjMU 0CX91guUM3c+cMw6jzkcHu8CXvVTgCvzQy2MdxT2W6eAaxdpwfsOG1hZdyumHKJemX4r V5Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773500364; x=1774105164; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/azV0psF+bS6fSEg6CZibIvOravefm+Ono+X2PE8EVE=; b=eusXwE3B5kUZDUDD+ZgPrcdHxVp5defpR/n3lLUQAogivqiNckFBC2jkM0zx+TLfiM hd3CKqx3l4tIXSaaKJOf66arHcbbUyU3+B6yC6xz1spBC2b6kU+pQcwlMKW40naMtSoy vomV6e5QGXqpKs8AEgdc/hK/nAzvnXpyPzb+q+gHx05SxCrq7kozWuL9E8TybThRAqme elp4k+nDKNIuxiVURd+YpnDUUdG364Gy7B6lbvZHkOpwTQkwGeb14xeaNy65T4e7O/d1 iHaUZqAU+SuQ+34C140yM+GX0bMz/YMwTYw5U4Ba4P4CDlEPI8DygWxcrL7WKswif9+B WAwA== X-Gm-Message-State: AOJu0YxX+HPhzSvwgY/LTFuPyztnnYyeXjr3TGUwTwHl9VTjFCUWEWgO 56B9AksQa9vizXDUFgO+PZudZ56BvSJmfU0Z/+GTlQgFZ2Bi28YZTI7fuNoHWU47/OUco4WfYlD esoPfmsQ= X-Gm-Gg: ATEYQzxyWZnPeAe/x8t7Kf5jQmHaGqTc+VihRagRszEU2bUzELaMRA4/RJJROLWUInW LtfT4JAAezqO5lDCWMCH/mSeBY61QgGGOc+0VyVYAZmd071C9poYWKktKVE1WHDgoYO282nscrb Mz+JCCD81Yh7Zy0LDukbesDBNDtQB5mh27/SaT+LuVcM4bA9UeIo2I0qbViPTI0BLQeHnt0oYZ+ o+p084mc2ssm4sFK1lKnPXi1Hk8MGX50CBv897HcXC8Koeht/jcTCl3DffvGuqgnDwciJUuohXc PuRH6NHuKfRBeFThFzK/pm2Vf3PPi3m6hDaAem0Zsbon1iUwSzTnclRspfPyml7IjXGe1tZVwu4 IrYZtZgqBeodEzbtlYxMRoQT67Xedr6J3KwGBG/b+pS4P5LXnNXoe/bG1m57zG7N8dxTmiCgc4s PW4fTwdpkS1CLDPHW+GWu52tzx6Zvj87RQQbZyiWwx1YYL9RhHpYBjl7hJ3S/tmWb93iwV X-Received: by 2002:a05:6820:628:b0:67a:222e:ae6f with SMTP id 006d021491bc7-67bda4999fcmr3653386eaf.26.1773500364250; Sat, 14 Mar 2026 07:59:24 -0700 (PDT) Received: from m2max ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-67bc93065e7sm7303137eaf.9.2026.03.14.07.59.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Mar 2026 07:59:23 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Subject: [PATCHSET for-next 0/2] Replace io_ring_ctx bitfields with flags Date: Sat, 14 Mar 2026 08:58:04 -0600 Message-ID: <20260314145920.86796-1-axboe@kernel.dk> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, No functional changes here, just gets rid of the bitfields in ctx and replaces then with a single int_flags member and a set of flags. This makes it more obvious that these are manipulated and checked together. include/linux/io_uring_types.h | 32 +++++++------ io_uring/eventfd.c | 4 +- io_uring/io_uring.c | 82 +++++++++++++++++----------------- io_uring/io_uring.h | 10 +++-- io_uring/msg_ring.c | 2 +- io_uring/register.c | 8 ++-- io_uring/rsrc.c | 8 ++-- io_uring/tctx.c | 2 +- io_uring/timeout.c | 4 +- io_uring/tw.c | 2 +- 10 files changed, 81 insertions(+), 73 deletions(-) -- Jens Axboe