Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7086003rwb; Mon, 12 Dec 2022 09:52:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/VA3+sPQ8fD5gmfOAkLoehOCtDrpdZ3iWYdbUMmvrVDxxRCuVArfv04ZAUibV/9HDHPpo X-Received: by 2002:a17:906:2a8c:b0:78d:f454:3771 with SMTP id l12-20020a1709062a8c00b0078df4543771mr13545615eje.20.1670867530445; Mon, 12 Dec 2022 09:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670867530; cv=none; d=google.com; s=arc-20160816; b=TXwougvMEHvH9LGAdnqxdDS0MWHIBgcj/mAXA+tKO5gS1+aMOlBPM1islbSTxQViRT DyjzBcw9R2ZdIaMqYUFa6KFDS4pau5eG7eUxl2Vx/3ULurRVI3bHG/0sikrO4OPaUQa7 Nt+/jn69MYexStLcLTghC9h/L6RLiLlpY3PblKLCTXTxQfEPmKIsXRSNyDXUUFrluNaK Vm0ZTINtnbEvitJi16gUBxxZMBuUcC4zJOACcXqge0gQHvpZuKC2IU5plaphKsQst5za VEdgtekZ8YJCk5HbhiCSot68GA0O1nqer1YOZol6BSbMdsGwA2h7gQ1uobuEoJqiTdmj DZAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=ErucJm5oJdUOSR1gxQc+Q30vftKSRQo7FXxiHKUX1kk=; b=e8/XzI+9YBxRx3HKn3WTzDjWZC2H+ZpuBuPfsJfoNid49l8Wu3NfhCamfO5fCPy6St i6fJAPJ8cP9vtSVuOM2YHR9xpjXD8FxiDgdv6BOsB/Tw39S1UCI4OlvmIbVbi0XUJ9si 8Im2dWGype2JecnZRkOaATlZpuRE4jdv94rkOnJyMjLmVWd9YT+sFi4ZDaclOIVWNoK/ 8jXxGUh4aZBHXs85RAWChVh2uwhhNFqorQ2B7nN5lIJ2Kbp6gpnADYb2QDpp3vF7k4hF C9fPq3li3Ka/HeLTiEjxvc4oZNpU5wWuL/GL/otI28ZfjcVMgyBFQrFMpJAP0FS+783A 5g1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hm5+WTvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs13-20020a170906f18d00b0078d48e06641si5189626ejb.393.2022.12.12.09.51.50; Mon, 12 Dec 2022 09:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Hm5+WTvx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232579AbiLLRop (ORCPT + 75 others); Mon, 12 Dec 2022 12:44:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232450AbiLLRoj (ORCPT ); Mon, 12 Dec 2022 12:44:39 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE966BE0A for ; Mon, 12 Dec 2022 09:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670867018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=ErucJm5oJdUOSR1gxQc+Q30vftKSRQo7FXxiHKUX1kk=; b=Hm5+WTvxe/N0KTrRqbo6LiLF1rhNfOe7ad7DAw2ICsmmkQEG9GDMEaBRlIGVdMiL7X0POA zluZY9NCsAE37zEVGyMJaWoaFwFTQEFwkYOck6uHSbQxGrjGK9n/++u2w53BnSxszZ6pLx 5wQofsUkF41nES8robGbAAD9Ek3Cnaw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-313-3jRwGyAxN0ySz0P_thjkEA-1; Mon, 12 Dec 2022 12:43:34 -0500 X-MC-Unique: 3jRwGyAxN0ySz0P_thjkEA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 770BA85A5A6; Mon, 12 Dec 2022 17:43:34 +0000 (UTC) Received: from redhat.com (null.msp.redhat.com [10.15.80.136]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4291940C2004; Mon, 12 Dec 2022 17:43:34 +0000 (UTC) Date: Mon, 12 Dec 2022 11:43:32 -0600 From: David Teigland To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, cluster-devel@redhat.com Subject: [GIT PULL] dlm updates for 6.2 Message-ID: <20221212174332.GA9261@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Please pull dlm updates from tag: git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-6.2 These patches include the usual cleanups and minor fixes, removal of code that is no longer needed due to recent improvements, and improvements to processing large volumes of messages during heavy locking activity. - Misc code cleanup. - Fix a couple socket handling bugs: a double release on an error path and a data-ready race in an accept loop. - Remove code for resending dir-remove messages. This code is no longer needed since the midcomms layer now ensures the messages are resent if needed. - Add tracepoints for dlm messages. - Improve callback queueing by replacing the fixed array with a list. - Simplify the handling of a remove message followed by a lookup message by sending both without releasing a spinlock in between. - Improve the concurrency of sending and receiving messages by holding locks for a shorter time, and changing how workqueues are used. - Remove old code for shutting down sockets, which is no longer needed with the reliable connection handling that was recently added. Thanks, Dave Alexander Aring (36): fs: dlm: fix sock release if listen fails fs: dlm: retry accept() until -EAGAIN or error returns fs: dlm: remove send repeat remove handling fs: dlm: use packet in dlm_mhandle fd: dlm: trace send/recv of dlm message and rcom fs: dlm: let dlm_add_cb queue work after resume only fs: dlm: use list_first_entry marco fs: dlm: convert ls_cb_mutex mutex to spinlock fs: dlm: use spin lock instead of mutex fs: dlm: move last cast bast time to function call fs: dlm: use a non-static queue for callbacks fs: dlm: allow different allocation context per _create_message fs: dlm: remove ls_remove_wait waitqueue fs: dlm: relax sending to allow receiving fs: dlm: catch dlm_add_member() error fs: dlm: fix log of lowcomms vs midcomms fs: dlm: use WARN_ON_ONCE() instead of WARN_ON() fs: dlm: avoid false-positive checker warning fs: dlm: drop lkb ref in bug case fs: dlm: ast do WARN_ON_ONCE() on hotpath fs: dlm: rename DLM_IFL_NEED_SCHED to DLM_IFL_CB_PENDING fs: dlm: rename seq to h_seq for msg tracing fs: dlm: add dst nodeid for msg tracing fs: dlm: add midcomms init/start functions fs: dlm: remove twice INIT_WORK fs: dlm: use list_first_entry_or_null fs: dlm: use listen sock as dlm running indicator fs: dlm: remove socket shutdown handling fs: dlm: cleanup listen sock handling fs: dlm: don't put dlm_local_addrs on heap fs: dlm: remove dlm_node_addrs lookup list fs: dlm: use sock2con without checking null fs: dlm: use saved sk_error_report() fs: dlm: don't init error value fs: dlm: parallelize lowcomms socket handling fs: dlm: fix building without lockdep Paulo Miguel Almeida (1): dlm: replace one-element array with fixed size array fs/dlm/ast.c | 322 ++++------ fs/dlm/ast.h | 17 +- fs/dlm/config.c | 4 +- fs/dlm/debug_fs.c | 2 +- fs/dlm/dlm_internal.h | 25 +- fs/dlm/lock.c | 190 ++---- fs/dlm/lockspace.c | 14 +- fs/dlm/lowcomms.c | 1538 +++++++++++++++++++++----------------------- fs/dlm/lowcomms.h | 6 +- fs/dlm/main.c | 7 +- fs/dlm/member.c | 5 +- fs/dlm/memory.c | 30 +- fs/dlm/memory.h | 4 +- fs/dlm/midcomms.c | 141 +++- fs/dlm/midcomms.h | 7 +- fs/dlm/rcom.c | 4 +- fs/dlm/requestqueue.c | 3 +- fs/dlm/user.c | 74 ++- fs/dlm/user.h | 2 +- include/trace/events/dlm.h | 303 +++++++++ 20 files changed, 1455 insertions(+), 1243 deletions(-)