From nobody Sun Feb 8 11:51:04 2026 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 15D491E2874 for ; Wed, 7 Aug 2024 10:52:35 +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=1723027957; cv=none; b=T05IKwUmOXprzJKf/Qev7jq+DV9gsHp/owQz/kYou//BJT+GaL453nRfZvolurTJN/AY6NZyV4IOmMeVbKMeZjUW03H0kn86n1T4z6UMZbhkUdTq5Jl4cHaM9jACsmF8NGpP+7uks2Je7ePDQF5l0+i0cpCRssknhjkKJOF7oDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723027957; c=relaxed/simple; bh=ELCNY+rxDsgDHW/+80Up8lrF6MCpVdjED27XLaBDzH4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pF/itPV8CU1fETFJccKa90oBNFz/09c7EKbXicdhpve+x7NgEMqc3V4BLrR35uMs87ycfuutf/JPTir7u/KYrhPYdc7ygx8Nx5B+cOemvahkKNfgVWJ8d/HwFQPCuXV5RKCj4U4TMJGahEJqYAxiQeFF/kZ2Alu7KKQVYcX7XRI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=dF3RJzUL; arc=none smtp.client-ip=209.85.216.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="dF3RJzUL" Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2cb510cd097so1356314a91.1 for ; Wed, 07 Aug 2024 03:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1723027955; x=1723632755; 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; bh=Rwt3lSi6Z4A8hazmpA+Rnhfblb1do8j78yHI+U6dKhk=; b=dF3RJzULJS2Goew1JEFG/yvDfwLU4RVMn9cAvzUl+u1jHLa9MxOx/P/WEi8IJdLjDJ kLqKp+ZKRlc/AckV9Uk1rppEGJVNxVs5V8kpQjxVGiXTM4PgdQkfcnZBU9KwiVxAWNqK d4kEvMbnFVZ4bZMg2aLORAVeQwUDBuOAE6EnA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723027955; x=1723632755; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rwt3lSi6Z4A8hazmpA+Rnhfblb1do8j78yHI+U6dKhk=; b=Se8yj+hoBQC2D7AxSgJRmwIqZi87sKuE7vEOAtqo3EjP9sgfhr7k8+wAva8kqX/ZGN dYjMyhkEPI2NcRSiOFgxZ0Q8zp+lrHalp/lf0RO5KIKNXAZjn73kBSHC6ktEy6vgIrtk /6V8JV3Ygnl8Vwv/w8HoO5IFwtS370lYdTJBTqDeKZ265GqnHI2QzlVDqnfbcleMmn9B UKMlH2N5Jpvg9cuZ0pNfk0MMbO5Gf7+SpwMlCJqiAu0GBhCG6bn1GbHO0EZMt4fudPZ4 RT/tXjIW0g2Zch2rZM11YF8gsLuYC+uTkTeDnPye7aUhS5bZBTbF7w3FNICUccnKFePc 4Qow== X-Gm-Message-State: AOJu0Yz07C3ewDD0dFQ8/lHx9Fh20JIpfdDxvBB3LTzZdP6RR3jlOxss 4HpZOZVUIQsqyIP6MuoVNd+KtvNNtVHbhTvjBlhj751kKLEhTRc+xh5cdNlh36FC4TLnMWB8PcT lbMK+UVnkX05s52q05ZLe5X7yueugnmixClPu6A5ifDufF2a1qxnZuqnpobvtrZklGhcAGYW7ke L4mVLpwFLrU38y84ctDHZzre+hs8d0PY4N5GuRbsczUbqJhA== X-Google-Smtp-Source: AGHT+IHQHmxsKg8noU+VS7nStysBMV3Pv8KiIJj6AJXy8lsYF2lj11qRXOGJgJLKkMCqvSt9X0bocw== X-Received: by 2002:a17:90b:1b0a:b0:2cb:e429:f525 with SMTP id 98e67ed59e1d1-2cff9524435mr21812519a91.33.1723027954846; Wed, 07 Aug 2024 03:52:34 -0700 (PDT) Received: from localhost.localdomain ([2620:11a:c019:0:65e:3115:2f58:c5fd]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d1b3a9cba6sm1241481a91.12.2024.08.07.03.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 03:52:34 -0700 (PDT) From: Joe Damato To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: sdf@google.com, edumazet@google.com, kuba@kernel.org, mkarsten@uwaterloo.ca, Joe Damato , Alexander Viro , Christian Brauner , Jan Kara Subject: [PATCH net-next] eventpoll: Don't re-zero eventpoll fields Date: Wed, 7 Aug 2024 10:52:31 +0000 Message-Id: <20240807105231.179158-1-jdamato@fastly.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove redundant and unnecessary code. ep_alloc uses kzalloc to create struct eventpoll, so there is no need to set fields to defaults of 0. This was accidentally introduced in commit 85455c795c07 ("eventpoll: support busy poll per epoll instance") and expanded on in follow-up commits. Signed-off-by: Joe Damato Reviewed-by: Martin Karsten Reviewed-by: Jan Kara --- fs/eventpoll.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index f53ca4f7fced..6c0a1e9715ea 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -2200,11 +2200,6 @@ static int do_epoll_create(int flags) error =3D PTR_ERR(file); goto out_free_fd; } -#ifdef CONFIG_NET_RX_BUSY_POLL - ep->busy_poll_usecs =3D 0; - ep->busy_poll_budget =3D 0; - ep->prefer_busy_poll =3D false; -#endif ep->file =3D file; fd_install(fd, file); return fd; --=20 2.25.1