From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 72675C8CE for ; Wed, 31 Dec 2025 01:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767145865; cv=none; b=Z+ccxduGWBzwGKe/eLNLaoWXgstlPQV0tFDXuR6KY+JnhvDIzJcXSHPuxduv9hxHXNhG8zBnz6uFEr1pfnE1qQfQ5FgX31oPLG9DLio4ApLeRKRNk7V4zO/pN9ASX760CmYJcxAkm9+25AuXv+AXEOJGCm340vpTE07Yf9VdRvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767145865; c=relaxed/simple; bh=6Rqu8bNjDfz7V76quRApGeOvWDaXvbO7VOppEEJfNBc=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=trC54vXJrb48v4Xlp2jiRXZRQPnHnyOplWpOEbJwxQA+nwLw6f0A4af9I7CSxN34fRA+Xe4Nl0biy5aEbK6MKXB1PlCegFrlAOQnZXF75Nk8ftjcBkMPm1Y8vbdQt0jjx3V2xnVxEj0IXL4W4z++BcYSbdn27u23WSyK81MWnew= 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=BlmMzXzc; arc=none smtp.client-ip=209.85.167.170 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="BlmMzXzc" Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-4537407477aso6626049b6e.1 for ; Tue, 30 Dec 2025 17:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1767145861; x=1767750661; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8SuoU27L+fsbCL5CgXdl2telrpyeGmfbQJUue0wD/ck=; b=BlmMzXzcjUXrX7XJQEAzv1+RW1GgGHjOSx39hkbcsq333MC12SYmPUR/DkzvCo2slX t2lm8eAJZqzuM4RWeP1nn0gJs+DLEe/SR2sEGie0/9IONi9Aw9Np5CX3VQm3SJjiCkv9 mwz7tpnUwCdOe/D/WjcYC1p7sMREGiGaoa5xdJaGwGxmcbGoadMRZ5hyNvoQ+75jbrCT fn8dj3sVxHI2tzxmyNAr10YB+n/ICGVUPTAeWCvQ1UqovUe39vXMPz0/Ypfr3G1VNNQ6 n0Mcdqd8GTjQTEcxJ99n9sE875tKrPhRSBdFwEnz6pSnrzs+IT867Poq4SqmmnAC90wU DDzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767145861; x=1767750661; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8SuoU27L+fsbCL5CgXdl2telrpyeGmfbQJUue0wD/ck=; b=ZbBU8f57L/9uIW4hyYThjq/9QU/PZVQyfHtlItUrf/LuXYEl0Zte+SIjbTJH6AmENV 5UR2lrVTa95RZplpaGy42ZuHfb0zPZK9jB7ICzH5NsQXX1RLZheYgN6vGgWLq4tgw6XO q4+8ci0jBL0qkmFJxyC2ophrElxXJa0tHZpDQ91QgPcAKELPYeLdEG6nToCtyBYvW/qk UqJ0dJv1Ik5wYkMcNnFmy4wv/S+NKqi7hGX77rR0Z7yAgQTcrnCwKcYldAbszTORW20j RNds2hhd71gnW2CNG/PObJvjCp0DY2cCy7Y+FMI2GF695WpSTdV4OYNqVwDpR+D5wb89 GPMg== X-Forwarded-Encrypted: i=1; AJvYcCVufiG3QCRNVkbN5Yda60zHhAVQcE5NkDDl5fAXMY17ZCJ6EvaC89vRowEe8PMdFgSY19wkz3+60VkwFLU=@vger.kernel.org X-Gm-Message-State: AOJu0YxkRMuKBFxlmF9TwhrbKuVh17ir86TWvf4wuGmwA+Bx/MRuhMRg EveG04X1SSrCcrx7NXyTTzP8y/88t8/IXnBsWxI6N2tG78yCYOHn/SEbLjUHns1tkyfTNMAuOVP 8zQeX X-Gm-Gg: AY/fxX4wvsrW9BWC0HtR1FPd9tWrh6rx71EPurB+t4KfZCOKG8FXlXpIg3t6mhd5qnP P1F3o3e2zuOFCUkq0s49tcMYetUGvTepVvN4APNWBmblRjPFP0+vEAKJi7GXo7I1+fJ7HV5mUjN NSYK5hyujn+hiQmgXoIf7ABI02HAnqgoA/3Y2NuxAwbJMPaoB/xW/dHlnO+Nz+XpIVfsd3M7PsR jWuEITJgGK+nVxGpERyBjoHvy/HhKPvzxeQlXB8Ybvn4IygW7rhTzduxL1LhGvJcnZkvoF3E8Ji 4CoOJCXIZO/OGPigv3Cp7n9pjNGxsobd6hJyJcYZK1gbcFBh6wNV/OPaSxu2QcM3UchMJS6VZVy BZoPGd3/51j4HWBRbjbHPwKklzcVWV+PFmarCg/XStBffON23uhnLcbirbfXTWvYegTk+xWT3i4 R/5F4= X-Google-Smtp-Source: AGHT+IFuVO2NN4e5glbTps0hcx9qJkSL6z+d81prsoeMUIUxhdBrrqlY8Pc/qRXal+d5c+crGW4+ag== X-Received: by 2002:a05:6808:181e:b0:450:340:2693 with SMTP id 5614622812f47-457b2120fecmr15184108b6e.42.1767145860840; Tue, 30 Dec 2025 17:51:00 -0800 (PST) Received: from [127.0.0.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7cc667f958asm23226244a34.27.2025.12.30.17.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Dec 2025 17:51:00 -0800 (PST) From: Jens Axboe To: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Negrel In-Reply-To: <20251230190909.557152-1-alexandre@negrel.dev> References: <20251230190909.557152-1-alexandre@negrel.dev> Subject: Re: [PATCH v2] io_uring: drop overflowing CQE instead of exceeding memory limits Message-Id: <176714585945.414491.8962578639891621014.b4-ty@kernel.dk> Date: Tue, 30 Dec 2025 18:50:59 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.3 On Tue, 30 Dec 2025 19:57:28 +0100, Alexandre Negrel wrote: > Allocate the overflowing CQE with GFP_NOWAIT instead of GFP_ATOMIC. This > changes causes allocations to fail in out-of-memory situations, > resulting in CQE being dropped. Using GFP_ATOMIC allows a process to > exceed memory limits. > > Applied, thanks! [1/1] io_uring: drop overflowing CQE instead of exceeding memory limits (no commit info) Best regards, -- Jens Axboe