Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1365286lqp; Mon, 15 Apr 2024 04:35:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGYgCzV5g45PQQed2Sf/aE7RctfpKr7JqjxSsn6hoPWhfhxK1OeGXFC8Hk9V3W3MhwUUaBoxNRvjwa2e8UobWPELQhR+46wGkddJTymQ== X-Google-Smtp-Source: AGHT+IH+guJIac1xfs04V0jqy8742y82QNUOwOn0XIGqODCiZLhcBebpKxqvVnZARp4ECALOUbuX X-Received: by 2002:a05:6a20:c901:b0:1a9:c2dd:7c9e with SMTP id gx1-20020a056a20c90100b001a9c2dd7c9emr9194246pzb.2.1713180910959; Mon, 15 Apr 2024 04:35:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713180910; cv=pass; d=google.com; s=arc-20160816; b=pMCI/gfNiJYH163gSpF5ptgki5ZgH4SZuLP7PpSQhPenjA3HDmdyTaMh8xu0T0LE7f jzhcDsrBkIW2qM1LaTGTJwYHxL0utlmMCbLQPnS6isIN1g6AvXNanAN7CXsJsfB9WbFm M5CrSmXqwWbCA2sSGLvkzIv7N2IUNnCemz+xHqEsVnsD+XpVUf55CdBnk+sjOqXEfhHv GpL3xNRH9VFib+BdtMJ1zIGM3fXQIBgQSq6jTxF3aj+XnEeAaNGGJxlgA19Xx0VvrKZm T1tmQQqt26LKOnI9I3X9u8w/ZJqW264Gy81ZeantULBiidrC3g4QcnceEzJbgFXEnyEL uTVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=u36oSuZ9892J7+6mnaPBiCYYNXIpRi7HFPb44PW/B8k=; fh=ocEshcd/USd1aFuYlb1x53ANst9TLaXM17ohmJb27hY=; b=nSYgKyl3XNRmm+mTdKvHKCsn6l02EVnLh5DWCKvMYwqjXhbrNvjeKQY7PUkSmBofWo 4gVuEwt/z03lhVdWy668YPgBZfT77Zv14PNIl+uG/smECIiKILxaNd2c6ZtenoTh5zMq 20rcrBXBg42QxG4YCD+dPE9M+HwMzi2gFghsEczb37zZmuvDq+PRGKwOKH/KTE7pr12m IOJH7c3PDSxodc3tQ4Ul50VIfQxKEM1x+Toizn2BneKz9lYzIzXuaL5FCuAweZgn0TNm j+Tg89Ug3dvkMvVmx2dASnqL6oJGAqsBefU1mTBncuahsLePxmXwjYWJSnYEFG6ANxJC 0yig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diDvEDDe; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-144992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 23-20020a631257000000b005dcbb75b1fdsi7820382pgs.218.2024.04.15.04.35.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 04:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diDvEDDe; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-144992-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B7EE28460C for ; Mon, 15 Apr 2024 11:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EDA860DDC; Mon, 15 Apr 2024 11:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="diDvEDDe" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99B205D8F6 for ; Mon, 15 Apr 2024 11:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180903; cv=none; b=bTDQa8OoRSR8TBGV0IhpJ4IFtLEGKBQ2C7t3KDU3RF6l7gcjyJDO4H8xkBFuYed0N+cox6VSj51CwF8wxNmllfmUIXOpsRIq2tBCn1vCvu6Sd/tywiYy2oB4hYkpqpB7NP0lIZRxIegaPQpnjm8mksMTQ+4Dk4jpn5VU1/HaImY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180903; c=relaxed/simple; bh=oxHCtuxwyM7cOnha78fodnI8/2nPA9V0tYQAbM8xax8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ChjomqYl/UmTmSYTxz+hQbAJ4CTa73SUz8doi9c7VmyUGC1bJHfYjnKSrd0rBOnNu/r/xE6SFAHekyA5CkAC963q+pVwAfFH50s972dupDUKmlhP2ZpilSlI+SUdlnP6eg1KoxOtC/0wdoJsU2kb7Qxm3Fwn0/iGJj8uEvgajvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=diDvEDDe; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713180900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=u36oSuZ9892J7+6mnaPBiCYYNXIpRi7HFPb44PW/B8k=; b=diDvEDDebmdI+1SW9jJvAQBpOSduQV6+/RZBf7TaVYhIeNgNrW1EIwcnTyVLMU2kriQ+Yh WNmyf4UIIvpJ5aP7l8MjdWEGbeqNmMU15I0Y4oH2BkyZSfoSjjZcZhgJvUMv/b1DYbzFoY ro7XYadjh71Pvc0GgVO7y2kSV4Cs89c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-235-tgvuqcLcPsGQ3JJWJejAAw-1; Mon, 15 Apr 2024 07:34:57 -0400 X-MC-Unique: tgvuqcLcPsGQ3JJWJejAAw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9E87D8059E0; Mon, 15 Apr 2024 11:34:56 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.193.251]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C45C1C0666D; Mon, 15 Apr 2024 11:34:53 +0000 (UTC) From: Valentin Schneider To: dccp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , mleitner@redhat.com, David Ahern , Juri Lelli , Tomas Glozar , Sebastian Andrzej Siewior , Thomas Gleixner Subject: [PATCH v5 0/2] tcp/dcpp: Un-pin tw_timer Date: Mon, 15 Apr 2024 13:34:34 +0200 Message-ID: <20240415113436.3261042-1-vschneid@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Hi, This is v5 of the series where the tw_timer is un-pinned to get rid of interferences in isolated CPUs setups. The first patch is a new one stemming from Jakub's bug reported. It's there mainly to make the reviewing a bit easier, but as it changes behaviour it should be squashed with the second one. Revisions ========= v4 -> v5 ++++++++ o Rebased against latest Linus' tree o Converted tw_timer into a delayed work following Jakub's bug report on v4 http://lore.kernel.org/r/20240411100536.224fa1e7@kernel.org v3 -> v4 ++++++++ o Rebased against latest Linus' tree o Added ehash lock usage to serialize scheduling vs descheduling of the tw_timer (Paolo) v2 -> v3 ++++++++ o Dropped bh_disable patch o Rebased against latest Linus' tree RFCv1 -> v2 ++++++++ o Added comment in inet_twsk_deschedule_put() to highlight the race o Added bh_disable patch Valentin Schneider (2): SQUASH: tcp/dcpp: Convert timewait timer into a delayed_work tcp/dcpp: Un-pin tw_timer include/net/inet_timewait_sock.h | 8 +- net/dccp/minisocks.c | 9 +-- net/ipv4/inet_diag.c | 2 +- net/ipv4/inet_timewait_sock.c | 73 +++++++++++++------ net/ipv4/tcp_ipv4.c | 2 +- net/ipv4/tcp_minisocks.c | 9 +-- net/ipv6/tcp_ipv6.c | 2 +- .../selftests/bpf/progs/bpf_iter_tcp4.c | 2 +- .../selftests/bpf/progs/bpf_iter_tcp6.c | 2 +- 9 files changed, 69 insertions(+), 40 deletions(-) -- 2.43.0