From patchwork Fri Oct 6 13:26:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 9989281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 555586029B for ; Fri, 6 Oct 2017 13:26:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55B8728DA6 for ; Fri, 6 Oct 2017 13:26:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A5BE28DA9; Fri, 6 Oct 2017 13:26:44 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 CD9FB28DA6 for ; Fri, 6 Oct 2017 13:26:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbdJFN0l (ORCPT ); Fri, 6 Oct 2017 09:26:41 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:55975 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752124AbdJFN0i (ORCPT ); Fri, 6 Oct 2017 09:26:38 -0400 Received: by mail-wm0-f42.google.com with SMTP id u138so7928106wmu.4 for ; Fri, 06 Oct 2017 06:26:37 -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=Z0Y2C4ROyw76dC9RzQT02P64or9J8ArWs3BarknxSRw=; b=qoekMOpH1USp8ZZnmkSojdS8yS6Jg5GVaJBAt3vXYeNuTPYuXmi7rnDfkEkRMg3JeR JMctfAlrj7B9akGdJWWSBJ8pnw/cFBUmEvu6ZCOPe0UgOQ49+9C7vTdf7GLDvjMZs9/Y CvzL/JgxBDShCVTU4zbu7UPxwgvvWaGT+x9vZVee/o/ySMeA5iiiHTooSDBy6wkyI1/N xfFTMXsUglratvPFoqhUVA3gjpFoI2n5FTOQ5YajbOE7tWVLLckqeud7O34Vg8a89p+W 0Z8Qo2cZYRl75apRMmDVn2Ceb850+rJ/FOqWkj9j1ZCE74+6lGMSeLD7glpU/rk2/i3N s3ag== 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=Z0Y2C4ROyw76dC9RzQT02P64or9J8ArWs3BarknxSRw=; b=Bm7zSj0PCcCM1wE7DlouW7VWvlNNIADkmpgaM0+8aJ2BPn0KiUFYqhpVqwFoSSzGIw nOy/TTOcVQp+RshSEuxHyLBVBjmJPlqCuj7syXjMpDacBsRjAi3NQeCT/oTI7tUeaCZH E57Agh1r5GcWy4jG8K7/e8mjx+OffcC4/lX5aOCI2x8bYBe1wvnUIwlbYhu/E9sgpPWh 5OIPN3XHcj6Ix+tJEhMeDyFVwziA3SaAsV+tlZacBIUoT9LhmSD7Tldo244hmciS6hU9 W6orGT8XMGEC4pQf5QJiCU9XIfISoufMug6LmatseiUbLCATDxhRYE877MwtE8nW2Gqo 6LNw== X-Gm-Message-State: AMCzsaWEDpbfYUixToxl5a7q4mmbBUKLAphoDOtZ1Fjnc2dlUYITmUnh XO+9az4JhhYa3zZktnQ0r07XfQ== X-Google-Smtp-Source: AOwi7QAuFbnuPqcsU4hklUM3QIN67resQqGibcp98S2l2zo41QWVqJ6bCoGq7bKyewtzu+LDJAb5nw== X-Received: by 10.80.145.40 with SMTP id e37mr3294703eda.245.1507296397136; Fri, 06 Oct 2017 06:26:37 -0700 (PDT) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id j42sm260089eda.14.2017.10.06.06.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Oct 2017 06:26:36 -0700 (PDT) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 1/2] lightnvm: fail fast on passthrough commands Date: Fri, 6 Oct 2017 15:26:24 +0200 Message-Id: <1507296385-6045-2-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507296385-6045-1-git-send-email-javier@cnexlabs.com> References: <1507296385-6045-1-git-send-email-javier@cnexlabs.com> 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 Make LightNVM passhtrough commands fail fast. User space will then take care of re-submitting. Fixes: 84d4add793c6 ('lightnvm: add ioctls for vector I/Os') Signed-off-by: Javier González --- drivers/nvme/host/lightnvm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 1f79e3f141e6..6017153c2439 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -600,8 +600,6 @@ static int nvme_nvm_submit_user_cmd(struct request_queue *q, rq->timeout = timeout ? timeout : ADMIN_TIMEOUT; - rq->cmd_flags &= ~REQ_FAILFAST_DRIVER; - if (ppa_buf && ppa_len) { ppa_list = dma_pool_alloc(dev->dma_pool, GFP_KERNEL, &ppa_dma); if (!ppa_list) {