Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp215051pxb; Thu, 21 Jan 2021 05:34:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiOdwGXY1iSt96zkCrEBOR2hh98vMj4aE4MLlOq+Rc5zm8/USK1iTU2pEU4N9gnpOU2xB3 X-Received: by 2002:aa7:c3c4:: with SMTP id l4mr8042326edr.255.1611236040640; Thu, 21 Jan 2021 05:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611236040; cv=none; d=google.com; s=arc-20160816; b=F5c6K0qjpgLuwvhjQLQXL52HnAx0ENV6VtkhS9MQ5RnHMmtIakMdzYiGbF2RUsdsoF HUU5cVbRn402xuhuZK6TwLsnGzLEW0aEWTJfI/adr9nXikhjV5EQKytItyobUguMyO+W Zo2ydOvMiwBGQzQOnkLsQ0RUMD2EZDMx2yQRvR8bGlPSI5Rt55mMP/++yzU1qdydPSNK v0GIGlqg3ZiZOSHKHROiJ+o+YPB700kHI5kz3Q3oopdR0CEdH4RJFg0WIhkQc0D0YwPF RpUzI8URik22C8wQdtYdFLtwjI2UzRjbNTcII3z7RKQATQnV7y3IIMxJwG152vDte7jL 5WCg== 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=IfhaMJYLoML7Y22BrUgxjVOkVeb6b5jyB/SWAlkSAAA=; b=Ouw6tTPoRo1PNlCuAD/LBEDTfhlAQb4Z+w2oGS15l7l8PtvLp2ZQ2oYJ9ISfHgv+p4 DE1+TqS+HSH7sRXJR/5FIe9PMnmw0z/H9g1Q6hKqFA3m0zUpbYFcOuQH/m2rRo3bhTRK xIUXoeTLdBjAbDa2oHXKEjDA8sYO/mpkhxZq2wuul8PWDbGAk1htpGEYb+rzw+KaXpoG EHG+fCPerLzKrrHxcuA8ZARTIPQtjPvmhiycDVZ+VEmWqFnspa6/sn3DysiJ2us4JVDd fYjwuv8cM9X6UrifPf+TN9RHh8M959iSxrfZGtpM+hFGWoeIU0q9dMqHTFMGu8ZDkLMa PtRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b="yg/3qXQQ"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si1777728eja.22.2021.01.21.05.33.30; Thu, 21 Jan 2021 05:34:00 -0800 (PST) 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=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b="yg/3qXQQ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729531AbhAUNcT (ORCPT + 99 others); Thu, 21 Jan 2021 08:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732029AbhAUN33 (ORCPT ); Thu, 21 Jan 2021 08:29:29 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3EBC0613CF for ; Thu, 21 Jan 2021 05:28:49 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id 6so2597073ejz.5 for ; Thu, 21 Jan 2021 05:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IfhaMJYLoML7Y22BrUgxjVOkVeb6b5jyB/SWAlkSAAA=; b=yg/3qXQQpHmWkucO4vOujODLkimtJry2Obbr+4KNPw0Nwy4Sf+OfP/mZ+1cCBEy+6N BzNeheO/U1tGD9atl0QvMY9LfBJt03NcZdZ/yqxDhbbFl3p2tHhh7ctp9WrE7MI5qjUb SX/pY3ujErsukqI8Q8gRnXKU91SYLeB2NTxcTebKEAS237W9VS+MoQfq3/AAaG9ynXYZ n+1RSp/I8ZsclB4kc+5YOBdL8g+OXQGi6GnYgJAR3A3HDhOra7lH1V5pxUzl67LKNhjF YfKpH+zk+kU2L7dB/UywWiovzTS+CCwIMZvjVMraIQZWbssZUs1qOalnavgXMC9HcZuv RdDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IfhaMJYLoML7Y22BrUgxjVOkVeb6b5jyB/SWAlkSAAA=; b=Mpy3Kp8iI4U4K8YyFJqfmKhIFuaViVWzBmnlbnaPidk+fnGuW2D8YF5OfBVkOtol0l vmvrtFd5FUaAeOjJ/ROyQQy0kPVhI3BRZ+z06sQ8pfpKVTxfc76EGfMWryY2xYjtq9iO 7r+DmnxSnh2bBh1t1Xssr6h8Cz5glXf4mGEME6NbYDgji0TKpjdJ1l8VdJCdErwVOgcA hRGSv3LdsWUyOc+zJMUDMx/qLp3zPi8ptsdkV2z6E+5DUaxFYgN2IHFkLmSNgpFOjbtK sA+0aJDcCw2V7JBp0Xyw9SC7V0CZxwBwpa+Y8YhqnwGzAOC8eDlB6+T+ihghIwp7UMW2 I1cA== X-Gm-Message-State: AOAM530D8HG3RU80IMIRN/BL5rNubBGYK/KD6d0Ds3ak3ktdnvtPAhqU EGEoMzlAb/h4Xgbnuear6zejcQ== X-Received: by 2002:a17:906:14ce:: with SMTP id y14mr8995342ejc.366.1611235727873; Thu, 21 Jan 2021 05:28:47 -0800 (PST) Received: from localhost (5.186.124.214.cgn.fibianet.dk. [5.186.124.214]) by smtp.gmail.com with ESMTPSA id ce7sm2238183ejb.100.2021.01.21.05.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 05:28:46 -0800 (PST) Date: Thu, 21 Jan 2021 14:28:46 +0100 From: Javier =?utf-8?B?R29uesOhbGV6?= To: Jens Axboe Cc: Pan Bian , Matias Bjorling , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] lightnvm: fix memory leak when submit fails Message-ID: <20210121132846.4t4ijlogfi2pndpf@mpHalley.local> References: <20210121072202.120810-1-bianpan2016@163.com> <55045608-01cb-d5af-682b-5a213944e33d@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <55045608-01cb-d5af-682b-5a213944e33d@kernel.dk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.01.2021 05:47, Jens Axboe wrote: >On 1/21/21 12:22 AM, Pan Bian wrote: >> The allocated page is not released if error occurs in >> nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid >> possible memory leak issue. > >Applied, thanks. > >General question for Matias - is lightnvm maintained anymore at all, or >should we remove it? The project seems dead from my pov, and I don't >even remember anyone even reviewing fixes from other people. > At least from the pblk side, I have no objections to removing it. I test briefly that pblk runs on new releases, but there are no new features or known bug fixes coming in. Current deployments - to the best of my knowledge - are forks, which are not being retrofitted upstream. For completeness, I get a number of questions and request primarily from the academia. These people will probably accuse the lack of LightNVM. I understand though that this is not an argument to keep it. Javier