From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH V6 4/4] block: Limit zone array allocation size Date: Thu, 11 Jul 2019 20:28:27 -0400 Message-ID: References: <20190701050918.27511-1-damien.lemoal@wdc.com> <20190701050918.27511-5-damien.lemoal@wdc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190701050918.27511-5-damien.lemoal@wdc.com> (Damien Le Moal's message of "Mon, 1 Jul 2019 14:09:18 +0900") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Damien Le Moal Cc: Jens Axboe , "Martin K . Petersen" , Mike Snitzer , linux-f2fs-devel@lists.sourceforge.net, linux-block@vger.kernel.org, dm-devel@redhat.com, linux-scsi@vger.kernel.org, Jaegeuk Kim , Christoph Hellwig , Bart Van Assche List-Id: linux-scsi@vger.kernel.org Damien, > Limit the size of the struct blk_zone array used in > blk_revalidate_disk_zones() to avoid memory allocation failures > leading to disk revalidation failure. Also further reduce the > likelyhood of such failures by using kvcalloc() (that is vmalloc()) > instead of allocating contiguous pages with alloc_pages(). Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering