Message ID | 20190504183811.18725-2-mb@lightnvm.io (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EA4451390 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 4 May 2019 18:38:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D72582882E for <patchwork-linux-block@patchwork.kernel.org>; Sat, 4 May 2019 18:38:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6D1F2882D; Sat, 4 May 2019 18:38:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A6F928758 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 4 May 2019 18:38:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbfEDSia (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Sat, 4 May 2019 14:38:30 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41752 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfEDSi3 (ORCPT <rfc822;linux-block@vger.kernel.org>); Sat, 4 May 2019 14:38:29 -0400 Received: by mail-lf1-f67.google.com with SMTP id d8so6505154lfb.8 for <linux-block@vger.kernel.org>; Sat, 04 May 2019 11:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bWn+rCikB65o9r7JGHEc64KTxHxT4P0396zHFHxaSAg=; b=PfrrKBlO4HsiGBjXeDeLtYEd8FGoTFGqIlW4grdvhmbEm58bDrztF2rvNxojAVR4bl 8voOeCeDHLrUjVLA9ObrKX5I4ov7QubcHTh6rTYvX5jPOqkuAK69IlDJ4Tk+aT4OGtiF bw82TUqZxuVUth1eXHf+P7C1uoBwTbOaYcTtxYL6MmNVKp1cIx9eCjvY71zSAiEYpjbg Q6tj2EDxglmE3niTxOIkLJc/2VS+jp8bqQCadlOT7u5o5KQsrCEJsJy81YVj+P3PTCuB 53I8JgnFWxm57RW+azFwTT+48lMj1hXvUq8dqEeMYCx7uy9dvJK6SroY9XdcVznkiKiu 9+Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bWn+rCikB65o9r7JGHEc64KTxHxT4P0396zHFHxaSAg=; b=X+msIe43MerTAJ3uZE7+qVYBpdTW9a5/AsOpyiIpz5YDO+8SQYoczxt8XAxAkA6syo evE1qFkHu4cjEgpX7oqXAXxVaw0Zp17moz3tW4t0XaF8EjGMnQIlpkYpWjxbTEx7OdWT 1vhbLMMavcXiHSr014NRgR2hKouTackubai2ZQcR19wLkcziEmdYtzFi0N61aw1qOImt c3ywADxJO0umG+8Oo0clI0lln8nENV5kPBbEWmChagGume2gh52i42AIMkdu2FAoZ0hs VyFw+r76+uQiikb2CQZvsC5bAK8Z4+rEtk28XmjHWQ3M4H6HPKq2wlpB8b1aZR0mHG1G A8Dg== X-Gm-Message-State: APjAAAWcDP6SNUgcEYH0C9toPxrowOClXBy2h3eyUiJwQay5j7iTiz1T DUn9MVh76GmywsuihfLsvPlH7g== X-Google-Smtp-Source: APXvYqxQXlO8pXIZfIypdXJu442v9wp/WbcMghp0URagUdObSZkHZvzUaypSHo5ZwqRlxUwhKjmuMA== X-Received: by 2002:a19:a5cc:: with SMTP id o195mr594362lfe.154.1556995107733; Sat, 04 May 2019 11:38:27 -0700 (PDT) Received: from skyninja.webspeed.dk (2-111-91-225-cable.dk.customer.tdc.net. [2.111.91.225]) by smtp.gmail.com with ESMTPSA id q21sm1050260lfa.84.2019.05.04.11.38.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 11:38:27 -0700 (PDT) From: =?utf-8?q?Matias_Bj=C3=B8rling?= <mb@lightnvm.io> To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Konopko <igor.j.konopko@intel.com>, =?utf-8?q?Matias_Bj=C3=B8rling?= <mb@lightnvm.io> Subject: [GIT PULL 01/26] lightnvm: pblk: line reference fix in GC Date: Sat, 4 May 2019 20:37:46 +0200 Message-Id: <20190504183811.18725-2-mb@lightnvm.io> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190504183811.18725-1-mb@lightnvm.io> References: <20190504183811.18725-1-mb@lightnvm.io> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
lightnvm updates for 5.2
|
expand
|
diff --git a/drivers/lightnvm/pblk-gc.c b/drivers/lightnvm/pblk-gc.c index 26a52ea7ec45..901e49951ab5 100644 --- a/drivers/lightnvm/pblk-gc.c +++ b/drivers/lightnvm/pblk-gc.c @@ -290,8 +290,11 @@ static void pblk_gc_line_prepare_ws(struct work_struct *work) fail_free_ws: kfree(line_ws); + /* Line goes back to closed state, so we cannot release additional + * reference for line, since we do that only when we want to do + * gc to free line state transition. + */ pblk_put_line_back(pblk, line); - kref_put(&line->ref, pblk_line_put); atomic_dec(&gc->read_inflight_gc); pblk_err(pblk, "failed to GC line %d\n", line->id);