Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2826923ybh; Sat, 25 Jul 2020 02:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/gzAUiy7WNUfAQn1mLXT937TNCTNcVzHkida5Hsp7yeMBVnzjiSghKsHxPkwsW3dCfvcJ X-Received: by 2002:a17:906:4953:: with SMTP id f19mr1457420ejt.95.1595670601592; Sat, 25 Jul 2020 02:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595670601; cv=none; d=google.com; s=arc-20160816; b=w7YmGXVhvBS9/rBf9a3Xv6k34vGvPDurbmglQizvJBB7W/H+ZZ4dnpoSJfbU0FT1we /E27TTdrbyuKav4aLmjNkOfHVlbEZiEf5+/M+u42uNT5qQDNXuFctq40hdhDyL5eZ0Xn rKS5upQ0qRvvJJ6Lx/drARliIiHsoX1YMKpPRkNDUsR5US+21AMya99pC5q+SW0GFqUQ McLvHe8tiRP62iNDQ9kHH3sUduX7pe5tSnFKZuCsAuc+Cpsihln+UhTxCho0lTEWRABZ z0siDDD7+OQbNcCyYIWzmbtj30QqbPmezvSP/zRNZmKUNrvFHFVhdZDPGI7+QK83Gk5a XgiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PN2Xs/Q3DnIYM6SWZ/xYcx0QxiDyrNCnXxiRaYTtKSY=; b=CZvCAWzIU4ilfm/UyNikd46f4By2NX3dnOs5pOI3DThR40Bwh7qwl66ONXTdSKoM34 n7qVy7i3zKet2va1YoVWk8SyOR9hbj0tRlsnoTMUL0E2g9WHn/RJTJk9loz/R0pUVeXd h1MZ7ODrhcUWqMOMBP7+lTQps00RCkurGnEr+qHyBxr7IxbXQSQKhaZQe/2CDkFPPPRQ 1hIII/qI88/kEzSAu3NnDMPk6KAX/P8WEWwjEwSdlxehbNiYJda8zxy7xGsA+4cfjYVx z0ebcX8wBtNMJiD8WC+IElR+v4YiNc/W0O7ML/S8Hz2A8YWzyoLf8IZ98i7ST8AH/wfB 0tsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FJhTvJlu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si2157340eja.287.2020.07.25.02.49.36; Sat, 25 Jul 2020 02:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FJhTvJlu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726618AbgGYJqT (ORCPT + 99 others); Sat, 25 Jul 2020 05:46:19 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:50198 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726572AbgGYJqS (ORCPT ); Sat, 25 Jul 2020 05:46:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595670377; 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: in-reply-to:in-reply-to:references:references; bh=PN2Xs/Q3DnIYM6SWZ/xYcx0QxiDyrNCnXxiRaYTtKSY=; b=FJhTvJluchvoj0+xfU/MglEGmQI+NF+iV7Qmjj4nHngE9zdFCZCqqMuiWOqobXYL2CRgqJ xJmnBsVLqY71M6QTfNanklnS8jI4p2Y8BYQHvfDbTsOZGU22E1rWQtbDl1aFAmerLduXhA GZEKaKQsyCfqoIK+v4fkSYBYmOZmRU8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-47sI9bpKMlmEqrHyB9koyw-1; Sat, 25 Jul 2020 05:46:13 -0400 X-MC-Unique: 47sI9bpKMlmEqrHyB9koyw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 88AC480BCAC; Sat, 25 Jul 2020 09:39:08 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.25]) by smtp.corp.redhat.com (Postfix) with SMTP id 7DBA05F1EF; Sat, 25 Jul 2020 09:39:05 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sat, 25 Jul 2020 11:39:08 +0200 (CEST) Date: Sat, 25 Jul 2020 11:39:03 +0200 From: Oleg Nesterov To: Linus Torvalds Cc: Hugh Dickins , Michal Hocko , Linux-MM , LKML , Andrew Morton , Tim Chen , Michal Hocko Subject: Re: [RFC PATCH] mm: silence soft lockups from unlock_page Message-ID: <20200725093902.GA3870@redhat.com> References: <20200723124749.GA7428@redhat.com> <20200724152424.GC17209@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24, Linus Torvalds wrote: > > And in fact, once you do it on top of that, it becomes obvious that we > can share even more code: move the WQ_FLAG_WOKEN logic _into_ the > trylock_page_bit_common() function. Ah, indeed, somehow I didn't realize this, > I added your reviewed-by, but maybe you should double-check my changes. Still looks correct to me, thanks. Oleg.