Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp251751pxj; Thu, 3 Jun 2021 05:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjgCVVcT0lMF4bFbEHw/qtVk2MX1JAy1+fNM3OKBt9wGOt+8SvVRjtWJg++Ubm2w5Jv5MM X-Received: by 2002:a17:906:c791:: with SMTP id cw17mr23615654ejb.329.1622725072349; Thu, 03 Jun 2021 05:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622725072; cv=none; d=google.com; s=arc-20160816; b=02ZAtw63joCQ+yY3Tyu2GNp1rXKFFczTGL6SHC+NoWYvDyDNwsZ4EtUZNU31UMY4Ld n2/QohZm/bY7ie2ewIoG5nNmf0pV/w9IQajDGoRd3c+GwiE8pfxth2NM6R/G2Rk7Odp3 ilHtIYA9oxyphE1K86k79/ZCmwwCLV+lbZWJWjK3Sx4qmXV8d0kdlWGcKOmmOVRgiHhS p9fZXpu8FjKmIDxSY/7KPQb+drqZBoGWUSgZYeCpQUsH7HwLi9Luc9hd2LGg4ygmHzSK 3RasX1MUf5C3JB3girw4voNba7mqhSEIj4sgo6cPVqMXVkcDmNCudWNJKfyo+Nu0VIv7 06kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z7m/LCBx78+c6nHqpE0hXxafCQ4I1Zl45KbB0XxDwUk=; b=ndr5hWdeTRk5W6HFfGhoSuLOFYF5mkCSyqo5XMmjEP5cWQR2XxmVUf2G8P7z5pkfh2 EL8ifHE85lgZmT9BF7AVEo5dUZtnjOZhUMh0mJ0H3cdpdrwNHUYNO7AfYLyVAWHKbEsV UcrgoMCes9j+uH6NgOvRvincyyz47C795mXymbJ77YXLN2oYX+VO2stclJvbeSW6AWui LX+XRJyZi204YTh7748uPs/5IR8swsWx+vMTaNdMYZuiRprQ7c8znlSGkpehfU3YlzUq yMqoVkKGhuUCDBGRN6oVpTQqGLMYOLZ0tPDgi6lwh5UptoLXneh3r4ajQuTRdlalebiA UYLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=sWtgksJA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si2172238ejx.746.2021.06.03.05.57.30; Thu, 03 Jun 2021 05:57:52 -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=@suse.com header.s=susede1 header.b=sWtgksJA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbhFCM6C (ORCPT + 99 others); Thu, 3 Jun 2021 08:58:02 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59512 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbhFCM56 (ORCPT ); Thu, 3 Jun 2021 08:57:58 -0400 Received: from relay2.suse.de (unknown [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 55DBE219E6; Thu, 3 Jun 2021 12:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1622724973; 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=Z7m/LCBx78+c6nHqpE0hXxafCQ4I1Zl45KbB0XxDwUk=; b=sWtgksJAHHOa9OHr4ZMgmPhisMy0ckAewux7uBO3zJuvRQ4kxqMVlUzea39oHQaTq52hq7 6jmwZrQbPB+9fxFkZupZ/fzdD4hKuQ4a89VEHLxUPWpJA6UW6QNqhSFDS2D1aTT1+qxVNL S4k/iQxdSMVPNGBlflXk5MZJzEJLs+I= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 2ACA1A3B8A; Thu, 3 Jun 2021 12:56:13 +0000 (UTC) Date: Thu, 3 Jun 2021 14:56:12 +0200 From: Michal Hocko To: chenguanyou Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, keescook@chromium.org, lukas.bulwahn@gmail.com, vbabka@suse.cz, gpiccoli@canonical.com, chenguanyou Subject: Re: [PATCH] [fuse] alloc_page nofs avoid deadlock Message-ID: References: <20210603124105.29052-1-chenguanyou@xiaomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210603124105.29052-1-chenguanyou@xiaomi.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 03-06-21 20:41:05, chenguanyou wrote: > ABA deadlock > > PID: 17172 TASK: ffffffc0c162c000 CPU: 6 COMMAND: "Thread-21" > > PID: 9652 TASK: ffffffc0c9ce0000 CPU: 4 COMMAND: "kworker/u16:8" Please be much more specific about the underlying issue and what the actual lock dependency during the reclaim is. The above is essentially void of any relevant information. > Signed-off-by: chenguanyou > --- > fs/fuse/dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c > index c0fee830a34e..d36125ff0405 100644 > --- a/fs/fuse/dev.c > +++ b/fs/fuse/dev.c > @@ -721,7 +721,7 @@ static int fuse_copy_fill(struct fuse_copy_state *cs) > if (cs->nr_segs >= cs->pipe->max_usage) > return -EIO; > > - page = alloc_page(GFP_HIGHUSER); > + page = alloc_page(GFP_NOFS | __GFP_HIGHMEM); > if (!page) > return -ENOMEM; > > -- > 2.17.1 -- Michal Hocko SUSE Labs