From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B67CFC41513 for ; Mon, 31 Jul 2023 14:25:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230077AbjGaOZV (ORCPT ); Mon, 31 Jul 2023 10:25:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjGaOZU (ORCPT ); Mon, 31 Jul 2023 10:25:20 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32F68B6 for ; Mon, 31 Jul 2023 07:25:19 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DAFA62219B; Mon, 31 Jul 2023 14:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1690813517; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LCbDFSxjpHTs+cbk9I/Ykb/mloJrU9IYWAAZqh7E04o=; b=GXZni3DWsCW1cxREtS+Sy21DRRGDhnjuLY7Xg9iTLSyNYi5cG9Kn98DUtU6dTgPIH+Z1kp RD5bDwM5dKcctKrdAd5hInG/0XxTANzngCLQ9ciclFYg8OZ3VtTBnUIz2/gBv4UWp0tp8K rTu7O5cnRZAWSGOguZBMKO/GGa8haT4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B77221322C; Mon, 31 Jul 2023 14:25:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sArQKU3Ex2TcVQAAMHmgww (envelope-from ); Mon, 31 Jul 2023 14:25:17 +0000 Date: Mon, 31 Jul 2023 16:25:16 +0200 From: Michal Hocko To: Tetsuo Handa Cc: Sebastian Andrzej Siewior , Petr Mladek , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Luis Claudio R. Goncalves" , Andrew Morton , Boqun Feng , Ingo Molnar , John Ogness , Mel Gorman , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon Subject: Re: [PATCH v2 1/2] seqlock: Do the lockdep annotation before locking in do_write_seqcount_begin_nested() Message-ID: References: <20230623171232.892937-1-bigeasy@linutronix.de> <20230623171232.892937-2-bigeasy@linutronix.de> <20230626081254.XmorFrhs@linutronix.de> <20230727151029.e_M9bi8N@linutronix.de> <649fa1a7-4efd-8cc7-92c7-ac7944adc283@I-love.SAKURA.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <649fa1a7-4efd-8cc7-92c7-ac7944adc283@I-love.SAKURA.ne.jp> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 29-07-23 20:05:43, Tetsuo Handa wrote: > On 2023/07/29 14:31, Tetsuo Handa wrote: > > On 2023/07/28 0:10, Sebastian Andrzej Siewior wrote: > >> On 2023-06-28 21:14:16 [+0900], Tetsuo Handa wrote: > >>>> Anyway, please do not do this change only because of printk(). > >>>> IMHO, the current ordering is more logical and the printk() problem > >>>> should be solved another way. > >>> > >>> Then, since [PATCH 1/2] cannot be applied, [PATCH 2/2] is automatically > >>> rejected. > >> > >> My understanding is that this patch gets applied and your objection will > >> be noted. > > > > My preference is that zonelist_update_seq is not checked by !__GFP_DIRECT_RECLAIM > > allocations, which is a low-hanging fruit towards GFP_LOCKLESS mentioned at > > https://lkml.kernel.org/r/ZG3+l4qcCWTPtSMD@dhcp22.suse.cz and > > https://lkml.kernel.org/r/ZJWWpGZMJIADQvRS@dhcp22.suse.cz . > > > > Maybe we can defer checking zonelist_update_seq till retry check like below, > > for this is really an infrequent event. > > > > An updated version with comments added. Seriously, don't you see how hairy all this is? And for what? Nitpicking something that doesn't seem to be a real problem in the first place? -- Michal Hocko SUSE Labs