From patchwork Sat May 4 18:38:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10929971 Return-Path: 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 BB3A61390 for ; Sat, 4 May 2019 18:40:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC5F22864B for ; Sat, 4 May 2019 18:40:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A12AB28710; Sat, 4 May 2019 18:40:09 +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 533A82864B for ; Sat, 4 May 2019 18:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727812AbfEDSkE (ORCPT ); Sat, 4 May 2019 14:40:04 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36512 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727425AbfEDSim (ORCPT ); Sat, 4 May 2019 14:38:42 -0400 Received: by mail-lj1-f194.google.com with SMTP id y8so7634205ljd.3 for ; Sat, 04 May 2019 11:38:40 -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=3843mVBw2aKQSM14ec6tRYSSMjiPOntWSMzut81TFAY=; b=JwDbYsTFb4yxp4ZUBe6/DXzDMyAvDefOOAFD/TtIa5KpnOttK7KaVLYSitUMzO0Z55 u0DBNjm1M5FH31OgE8XJFmHUtJ48ZkyGtMFOVoIouaNTy3Sm8hU71qpnN1HG3He0mLVW Zre5Jjcdvj5TunVqlX8Os/yRHDSJgZrgpf8t1bVlNi2tURj3P6c8ZKbFnY+uqvtMFsoq eehK2IYREB4u256xbI7iwBkwJ0ved7JfS0nqQ2VET2dU0+LqTGBcUTvpuoJpCThbcMZ3 tCZj4Jdgj+58tXebL1RhxjgO69rCJPMli2DCuPkcMRT/DZgkkIwxMePZo1BCnbYDyoiK lLhA== 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=3843mVBw2aKQSM14ec6tRYSSMjiPOntWSMzut81TFAY=; b=gEhRitaJnSEMAbUoH1CgUTbJzpeqxNpUZQgyP4l+7OUTSuLCfo2gZ65d9DT0+3Nh9d F4cjS/+cWl13cvjFZLjil4lb1LKquzg433R17R3iyzE5poTpu7Bx6nBzrdVLkozNTz0T byU771kBDdZLmUxm2snGdjF5lM/K98WbE9J2GJswtwodBhSJIPtbc1kFFmcXFIMp0VqE PsuHUnlnykbwgM9TICisqYEjWdsB0X9rfDT2Jc9OKI72+hVzMOeosN3xNyKDLkCJo23H ApjrVHZLgHFYvjh2Zb1lmS9Tln+g8zJIHcdrFsg6t1qCpagONjV5g2Ck958yI2T81QMk YlWw== X-Gm-Message-State: APjAAAUJcvB8Ev3WtSkrrOF2Zqu1C8hR9fRRauW80zlpIN/jUzwhOBwp 2s53W1MLoyxEg1tDMcVNrE8rHA== X-Google-Smtp-Source: APXvYqztbPkqlrOfQRcm5dTJdYEtSFLQQq5jpQMMbr9aVHMNr+Tyk33CA9pRAdKnB2aUm7BUzAuGEA== X-Received: by 2002:a2e:9216:: with SMTP id k22mr8846076ljg.179.1556995120087; Sat, 04 May 2019 11:38:40 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 11:38:39 -0700 (PDT) From: =?utf-8?q?Matias_Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Konopko , =?utf-8?q?Matias_Bj=C3=B8rling?= Subject: [GIT PULL 15/26] lightnvm: pblk: kick writer on write recovery path Date: Sat, 4 May 2019 20:38:00 +0200 Message-Id: <20190504183811.18725-16-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 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Igor Konopko In case of write recovery path, there is a chance that writer thread is not active, kick immediately instead of waiting for timer. Signed-off-by: Igor Konopko Reviewed-by: Javier González Reviewed-by: Hans Holmberg Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/pblk-write.c b/drivers/lightnvm/pblk-write.c index 6593deab52da..4e63f9b5954c 100644 --- a/drivers/lightnvm/pblk-write.c +++ b/drivers/lightnvm/pblk-write.c @@ -228,6 +228,7 @@ static void pblk_submit_rec(struct work_struct *work) mempool_free(recovery, &pblk->rec_pool); atomic_dec(&pblk->inflight_io); + pblk_write_kick(pblk); }