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 X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D83BC433DF for ; Mon, 29 Jun 2020 13:45:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5D71A23D67 for ; Mon, 29 Jun 2020 13:45:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="rIJqavQG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D71A23D67 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CCE786B0030; Mon, 29 Jun 2020 09:45:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C7E846B0032; Mon, 29 Jun 2020 09:45:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6D488D0001; Mon, 29 Jun 2020 09:45:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0078.hostedemail.com [216.40.44.78]) by kanga.kvack.org (Postfix) with ESMTP id 9D6826B0030 for ; Mon, 29 Jun 2020 09:45:25 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 13DB12DFA for ; Mon, 29 Jun 2020 13:45:25 +0000 (UTC) X-FDA: 76982371410.11.self73_3513f6726e6f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id DD073180F8B82 for ; Mon, 29 Jun 2020 13:45:24 +0000 (UTC) X-HE-Tag: self73_3513f6726e6f X-Filterd-Recvd-Size: 3281 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Mon, 29 Jun 2020 13:45:24 +0000 (UTC) Received: from [10.56.182.155] (unknown [2.55.133.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 966E123B06; Mon, 29 Jun 2020 13:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593438323; bh=fbNV2p8AknATNCvchaixaZk7J1gfSAuksWkmaOa87ec=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=rIJqavQGtKdDnlgH17SXo4lT2EuWXNLVpkw36+4fLHQ8xavualOqCc/Ck325eOUP4 T6UtQ8bd6poUsB+upMM3i3e7JAMyx/cHy79ZP65sGoWQxmU0HpOCbo6LWjBK+yfvxQ 96jSvpY1gUv1qWQtZ4Eur6wDToh2ek3ph+aiMBu4= Date: Mon, 29 Jun 2020 16:45:14 +0300 User-Agent: K-9 Mail for Android In-Reply-To: <20200629125231.GJ32461@dhcp22.suse.cz> References: <20200625113122.7540-1-willy@infradead.org> <20200625113122.7540-7-willy@infradead.org> <20200629050851.GC1492837@kernel.org> <20200629121816.GC25523@casper.infradead.org> <20200629125231.GJ32461@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 6/6] mm: Add memalloc_nowait To: Michal Hocko ,Matthew Wilcox CC: linux-kernel@vger.kernel.org,linux-mm@kvack.org,linux-xfs@vger.kernel.org,dm-devel@redhat.com,Mikulas Patocka ,Jens Axboe ,NeilBrown From: Mike Rapoport Message-ID: <6421BC93-CF2F-4697-B5CB-5ECDAA9FCB37@kernel.org> X-Rspamd-Queue-Id: DD073180F8B82 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On June 29, 2020 3:52:31 PM GMT+03:00, Michal Hocko = wrote: >On Mon 29-06-20 13:18:16, Matthew Wilcox wrote: >> On Mon, Jun 29, 2020 at 08:08:51AM +0300, Mike Rapoport wrote: >> > > @@ -886,8 +868,12 @@ static struct dm_buffer >*__alloc_buffer_wait_no_callback(struct dm_bufio_client >> > > return NULL; >> > > =20 >> > > if (dm_bufio_cache_size_latch !=3D 1 && !tried_noio_alloc) { >> > > + unsigned noio_flag; >> > > + >> > > dm_bufio_unlock(c); >> > > - b =3D alloc_buffer(c, GFP_NOIO | __GFP_NORETRY | >__GFP_NOMEMALLOC | __GFP_NOWARN); >> > > + noio_flag =3D memalloc_noio_save(); >> >=20 >> > I've read the series twice and I'm still missing the definition of >> > memalloc_noio_save()=2E >> >=20 >> > And also it would be nice to have a paragraph about it in >> > Documentation/core-api/memory-allocation=2Erst >>=20 >> >Documentation/core-api/gfp_mask-from-fs-io=2Erst:``memalloc_nofs_save``, >``memalloc_nofs_restore`` respectively ``memalloc_noio_save``, >> Documentation/core-api/gfp_mask-from-fs-io=2Erst: :functions: >memalloc_noio_save memalloc_noio_restore >> Documentation/core-api/gfp_mask-from-fs-io=2Erst:allows nesting so it >is safe to call ``memalloc_noio_save`` or >=20 >The patch is adding memalloc_nowait* and I suspect Mike had that in >mind, which would be a fair request=2E=20 Right, sorry misprinted that=2E > Btw=2E we are missing >memalloc_nocma* >documentation either - I was just reminded of its existence today=2E=2E --=20 Sincerely yours, Mike