Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp739852yba; Sat, 4 May 2019 11:41:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj/C8czhATsY9CSHSDHwQRRskY4IcqfeURqYci44CzBQeOXt1Czz3Ql4EGLi2MzeN2O6r5 X-Received: by 2002:a17:902:a3:: with SMTP id a32mr20510057pla.111.1556995311068; Sat, 04 May 2019 11:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556995311; cv=none; d=google.com; s=arc-20160816; b=CJg53bHtywJ8fDpmhPGJqsI45IVSdBh2fjwBko0cKG/8e/1O9bnUwrBrQ3naKkC49E YXoMQqmEKunIan1N3tetGZvYIecqyQz66ddRsNfAI4LcAfybPfF6ZdQbE/cseoaaZnKC jxMcM5t749X7IjHw6S8nI/9nA02H8GBwNbiXTUZhpgPwgmMrb1cAjlQVVWiqTlHfDSBP WLXaapPVEwW2VGdEEh8TdoRMkUGmpW389mCVjsIwMz65nFNJD9iIXUR8+xYzcdzVmg2w /jkWObBW8CGGW03tm3IesPG05WPdYgPk0wN0jLD08nlsL1zoju8KQJfQKTdC1N9b7PqV pJMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3843mVBw2aKQSM14ec6tRYSSMjiPOntWSMzut81TFAY=; b=n8VnsnyvTHFAYGK4umgCdSYCr7ov4AzOxs/0XGFqr8XvqcbJYGIqb63HONi152bVHP XDaFDbapH/vNmVW61egcxeW0pi7hNCWO02rAH1bUOB4dwIGQWE4VoEFXQ+p+6Qt9EKQn 8jj5U0csVglu/kNJN54wuJ90pDOhR45aNgLErYISiv7mig1EDLNpTU4i2fADTeN4gMDQ rZbB0M5hpj0fR+IcIleYBhf7ETVBI5JlItYxadG4/cSawzyIVCJSDSxcy3PjyQ6CSm6u QC1mkUJS/h7N9C6Wn4K4NAtjT8T95lqHpVKEjB5eWhuVhK4y7+wuOl3C8KF8drTNAM0c vEtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=JwDbYsTF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si7595238pgv.453.2019.05.04.11.41.36; Sat, 04 May 2019 11:41:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=JwDbYsTF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbfEDSkE (ORCPT + 99 others); Sat, 4 May 2019 14:40:04 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35063 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbfEDSim (ORCPT ); Sat, 4 May 2019 14:38:42 -0400 Received: by mail-lj1-f194.google.com with SMTP id z26so3037275ljj.2 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=t5aHBhD5ubsOUdCI2jH86i/4lGTRDz2f+eW3OGjPJZWsm6XFVWGGHzZ/kKJEttCG8h VoFJlO6WNQ+v9bl3qQhoOewmjAXePpAoWRV/vamiucJDB+ortlto8pY7bsX7kQEi02Uz /5iEAoJygB7JM43y2JdPNEDrzzEJELNatl2q+AmOLKLMtvR8iCrHaZJWvDfavys9dJbG 12In1+1Q3HwrMwWLhYA5PbyUcmE8DKtkzMJdG26tD9a99NfDT4YtplJrkcBiTqFKC+zj wFjulMZesO/rQxZlxIzjcBDyjRX18aqLAuds7zetdW5JEZX9U4GR6qBe41Pq94mqW1aW 1ALw== X-Gm-Message-State: APjAAAX4ww2k5v44zVZcKczjMMTGWAmtucAPlBNDfJhjeJ/+3GhS3ENU F9ziym27p7vKp9ckZSoRtCiZ+A== 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=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Konopko , =?UTF-8?q?Matias=20Bj=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); } -- 2.19.1