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=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 A1099FC6195 for ; Fri, 8 Nov 2019 19:06:42 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 72A38215EA; Fri, 8 Nov 2019 19:06:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="bv+kBwcl"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="Hc9C8B0O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72A38215EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1iT9ak-0000dI-2W; Fri, 08 Nov 2019 19:06:42 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iT9aj-0000dB-EX for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 19:06:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KUO65dsRHtTENunurXMA0yCDuIh5HnQm2qnH0n9rKZk=; b=bv+kBwclMbT2mw5u2rM2i1HSPF Y/7KLUy+wlkvQpq++vJNGc/4kmtdQVkaGEu7kVdpiyO5HaFLwZcR35lGQthDgnzV4jcbKdhBY27YA 76v6vs76mcTevXtV5mXUckAgnXgqgwwSz4LzpF44QaAlX8fWrzYs5bxyYhxvj+mKBpiA=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KUO65dsRHtTENunurXMA0yCDuIh5HnQm2qnH0n9rKZk=; b=Hc9C8B0ORNMc7F4TgCNEkVo4YN 4iGVyyuQ1WAVE4OJDvWngRuOwK24WZPNWJbd3YK8ncDIxsmqrbSsr2ABwOBlE/8WIIYpE+h9s2rdz hgaMZjZqYSg8T2PhXhVQAXpeMa9XfAIPF7EM6JHV4WY6x6ZWl7ustVmtvA1GjT8ZqGIM=; Received: from mail-pl1-f196.google.com ([209.85.214.196]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1iT9ai-005rjf-7v for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 19:06:41 +0000 Received: by mail-pl1-f196.google.com with SMTP id k7so4513128pll.1 for ; Fri, 08 Nov 2019 11:06:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KUO65dsRHtTENunurXMA0yCDuIh5HnQm2qnH0n9rKZk=; b=XAgMPx0UdX8z7lWldnjCI1zdgbSlehLEYvcd7B+QZ26mGGodr4E2STf0QWJznK586k gCiNdhC5s817ux0BySmH6967AS9sc19J5vXetB5WT+gruCvkynNjTa5ecMYbcpAZyaqU 38K7bEuO8yhmrVAMsgMTjaQ9KFWzX/x3djtUBdI4pryYgmDXcyww7j9XQeytU8hfPk0J r6ABq6u4HwMq7pSxzwhJBPAoR1JJGp46wzkTQ9zcnfejSGI9eomRvm7rNVpH+W2bKQuV HnlXG2kxAe46RmPV1X1WOZeRYz0D7q32VJOYUuEHFiTtiJrzemYPQUinyMA+QXMDMou2 NUQg== X-Gm-Message-State: APjAAAU4QzIp0QgHture7HKWq3CVnfPsOkn/UoMAvYT7JHmQrE2MIugG 4VnPRc4uTB7rVtxz8Xc3Ff8= X-Google-Smtp-Source: APXvYqyIA6IZIhFAL8yKUMxwryNfWoTyBGgHonMtuaTj6pITXvKw5p2xICH26JJvC0HNVp5O2BuxpQ== X-Received: by 2002:a17:902:d217:: with SMTP id t23mr12191406ply.287.1573239994227; Fri, 08 Nov 2019 11:06:34 -0800 (PST) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id a16sm7196444pfc.56.2019.11.08.11.06.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Nov 2019 11:06:33 -0800 (PST) To: Damien Le Moal , linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@redhat.com, Mike Snitzer , linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim , Chao Yu References: <20191108015702.233102-1-damien.lemoal@wdc.com> <20191108015702.233102-9-damien.lemoal@wdc.com> From: Bart Van Assche Message-ID: <6a1e0a08-d65c-b075-9bac-23519e9e91c3@acm.org> Date: Fri, 8 Nov 2019 11:06:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191108015702.233102-9-damien.lemoal@wdc.com> Content-Language: en-US X-Headers-End: 1iT9ai-005rjf-7v Subject: Re: [f2fs-dev] [dm-devel] [PATCH 8/9] scsi: sd_zbc: Cleanup sd_zbc_alloc_report_buffer() X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 11/7/19 5:57 PM, Damien Le Moal wrote: > - buf = vzalloc(bufsize); > - if (buf) > - *buflen = bufsize; > + while (bufsize >= SECTOR_SIZE) { > + buf = vzalloc(bufsize); > + if (buf) { > + *buflen = bufsize; > + return buf; > + } > + bufsize >>= 1; > + } Hi Damien, Has it been considered to pass the __GFP_NORETRY flag to this vzalloc() call? Thanks, Bart. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel