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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 E10BBC2D0A3 for ; Sat, 24 Oct 2020 08:00:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2C5FF22281 for ; Sat, 24 Oct 2020 08:00:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NDRtxukW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C5FF22281 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1B0036B005C; Sat, 24 Oct 2020 04:00:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 16B106B0062; Sat, 24 Oct 2020 04:00:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 04F126B0068; Sat, 24 Oct 2020 04:00:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id CC8CF6B005C for ; Sat, 24 Oct 2020 04:00:25 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 67A73181AEF00 for ; Sat, 24 Oct 2020 08:00:25 +0000 (UTC) X-FDA: 77406071610.01.rings70_0b07e8727260 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 390651004AF85 for ; Sat, 24 Oct 2020 08:00:25 +0000 (UTC) X-HE-Tag: rings70_0b07e8727260 X-Filterd-Recvd-Size: 2141 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Sat, 24 Oct 2020 08:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VtJ3/QfVYCJIzUimUHreYja6C5qKjpi3sBKHDNwKYcQ=; b=NDRtxukWe2cUfgssnc00+8lYub c2FX/x0Fp5aJvCnK31DdXCOXqDa3h6sD8kRe6OazFO8t3gu2FtKihT3ObNVUTell7gI0rHMLcENOC dpQcYl80m71lYTgNFJhq6hGdctXDMmzjlAfSsEhKTlEOUhSQkdmKgrf+ktLwET+3kmPF7DGDSelar 40ywonZ2vH1lxMYTW4CELbLRCHWc6WDF/C7xiXOsTr+0kwrUZ/ee4kTVxJHMb3+T3GlzPIopEKai6 tLLOsAQqbkl4SlpEmtxtuuNufWNkCDVlJgaMGgGbAawHNHfivfVYz17kLtC1j7PyA4s7XyKABrtxI TEY0OfLw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kWET1-0001XI-IZ; Sat, 24 Oct 2020 07:59:59 +0000 Date: Sat, 24 Oct 2020 08:59:59 +0100 From: Christoph Hellwig To: Roman Gushchin Cc: Andrew Morton , Zi Yan , Joonsoo Kim , Mike Kravetz , saberlily.xia@hisilicon.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@fb.com Subject: Re: [PATCH v1 1/2] mm: cma: introduce cma_release_nowait() Message-ID: <20201024075959.GA4285@infradead.org> References: <20201022225308.2927890-1-guro@fb.com> <20201022225308.2927890-2-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201022225308.2927890-2-guro@fb.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html 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: Btw, I think we also need to use this nonblocking version from dma_free_contiguous. dma_free* is defined to not block. In practice callers mostly care if they also did GFP_ATOMIC allocations, which don't dip into CMA, but I think we do have a problem.