From patchwork Mon Nov 28 21:38:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9450499 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 AC1196071C for ; Mon, 28 Nov 2016 21:40:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E67D27E3E for ; Mon, 28 Nov 2016 21:40:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9348227EE9; Mon, 28 Nov 2016 21:40:31 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 4AC6327BFC for ; Mon, 28 Nov 2016 21:40:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755662AbcK1VkE (ORCPT ); Mon, 28 Nov 2016 16:40:04 -0500 Received: from mail-wj0-f193.google.com ([209.85.210.193]:35602 "EHLO mail-wj0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755559AbcK1Vjo (ORCPT ); Mon, 28 Nov 2016 16:39:44 -0500 Received: by mail-wj0-f193.google.com with SMTP id he10so1527354wjc.2 for ; Mon, 28 Nov 2016 13:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EbrEh0sW51LJUyHcmgntpcgP9AKnU6bVaSz07lO68/4=; b=Dsr1rsJ/Kn3UV74r1JsSkGAGWD6j7ZJ+U6NJqwBBNHfH2bPpOCpIA4UDIUVrgSzzpr 7/zxljVacfWR/e+nlEJA++hr89VECU0Q6PG0smVDyO+DGP8M7EBM4QKJyKyb3N/Nsme/ 2hHPwPFucEB9I2X8ITWiX2HmRqO3o5wVx27gM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EbrEh0sW51LJUyHcmgntpcgP9AKnU6bVaSz07lO68/4=; b=bGBxtLvjguQ2Hqq5CGOCiHi2ms2AhVSdPohq0SjSXCKozsVnpIvpsEAcE8u2+81gyI lnKxmq2waKhFVmQakMszIboDab5mdh4rdSDc/t/T095dshEuv3ULEDF/paJTV32wwjSW wpD7yOvfxLST1KCvG8EbLcY45pqdF6r0BtIddq6sBOwZ9HGPO33ejnTb+Awxiiuo15JT TxnAf/tKOtXdpGiv4gawXSWfADwMl+2Ca19+Gew6+byXxbPQjhs1JvlhTqwHCLviowbq TZgbpgK7UJQdn2r2zpIHKcU1l7izuI11YcU92ItpXWpCtpfi89zdWUAnohEZJgn3ueue sEfg== X-Gm-Message-State: AKaTC03xTGcUxdFpeQUQGDNWTtbqAuRVMfZ4bBTBEGrQcWd6mEva5nRH73IO4XulKZP/9w== X-Received: by 10.194.91.148 with SMTP id ce20mr24216668wjb.59.1480369183108; Mon, 28 Nov 2016 13:39:43 -0800 (PST) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id w79sm30825843wmw.0.2016.11.28.13.39.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 13:39:42 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: axboe@fb.com, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 07/23] lightnvm: rrpc: split bios of size > 256kb Date: Mon, 28 Nov 2016 22:38:58 +0100 Message-Id: <20161128213914.12516-8-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161128213914.12516-1-m@bjorling.me> References: <20161128213914.12516-1-m@bjorling.me> 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: Javier González rrpc cannot handle bios of size > 256kb due to NVMe using a 64 bit bitmap to signal I/O completion. If a larger bio comes, split it explicitly. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/rrpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index 2b71b7e..60ca9d4 100644 --- a/drivers/lightnvm/rrpc.c +++ b/drivers/lightnvm/rrpc.c @@ -943,6 +943,8 @@ static blk_qc_t rrpc_make_rq(struct request_queue *q, struct bio *bio) struct nvm_rq *rqd; int err; + blk_queue_split(q, &bio, q->bio_split); + if (bio_op(bio) == REQ_OP_DISCARD) { rrpc_discard(rrpc, bio); return BLK_QC_T_NONE;