Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp442999ybg; Mon, 1 Jun 2020 05:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjUqQxy9mE53osSkuYGuas9/veOsMTCl3GeXxFW5mUMaG9afKRZwJ2RPV57vte2ebZKcZa X-Received: by 2002:a50:8b05:: with SMTP id l5mr9989175edl.276.1591015172475; Mon, 01 Jun 2020 05:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591015172; cv=none; d=google.com; s=arc-20160816; b=whchLqS/Ogwh5wpABsNgFB3Ej0W8RsFCNZG2kOA7zyVq10Id3wvBehjNk5hVt0lC74 xUKKnQTilyZd/bMgCCmfnaNdMKObErEhCf6GQ++OlcNs/Ium4Spkdzu4eHaXzdBAnFu6 oCxjbFZpElEoPaUtLfvaQ1OKI/x9Qxdb+Q5+FeUwGiSDtTveT/5D196U9NvCQ9b6JavD TAc8sD17k6enYD/2sGRsVVIU+R/MmALGeql6+5g6+SYg9LQgauhQXftgBzvJ38eIxuN7 Jed0YJ6pJRBTjmuomub2TLr1ihjcn/gDgofXQoN1GHt4xV+mRK4apdyQp5pyZQ99tBar M1dw== 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 :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=G1tdKoEj5u0IeOvuwPmSyZ1Bkd4kxnX5aPNmkUwjLXg=; b=yu54nnT/xUmR61NgXH34IELHrLGKTSmOLMKp5aHyL0Ia3OWAwluPFUPfOBFtiKqOFG 9Iq5vQBoLJl2YpNGF6dLzzlnsaP9krYpJhlolpxpJsagxslsi/Z9/mvW4SZAXWCgRwqe RO6RP2TUQLZsN0aek8yaGZsG6/tUMl38BpjD8BiY0ABkOcXssznCPrMpH/rzb5paPlMe 9VVfNOSvBustTDzHS07Oo59MdWyezLgeDMhrWBJ6s++xd1BhMoMJhe3Z/S+rx02q3cHG 4/Dq/YlgPHnRH2sj8WOz2/WO++m3Le13XOlp0c1Dm2dmrcCeCCGuaRF6RRSpl3uweCgT eMyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=GNme8U1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si11785587ejs.242.2020.06.01.05.39.10; Mon, 01 Jun 2020 05:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=GNme8U1i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727862AbgFAMhS (ORCPT + 99 others); Mon, 1 Jun 2020 08:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbgFAMhO (ORCPT ); Mon, 1 Jun 2020 08:37:14 -0400 X-Greylist: delayed 71854 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 01 Jun 2020 05:37:14 PDT Received: from forwardcorp1o.mail.yandex.net (forwardcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B6EC061A0E; Mon, 1 Jun 2020 05:37:14 -0700 (PDT) Received: from mxbackcorp1j.mail.yandex.net (mxbackcorp1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::162]) by forwardcorp1o.mail.yandex.net (Yandex) with ESMTP id 8F31B2E1545; Mon, 1 Jun 2020 15:37:08 +0300 (MSK) Received: from myt4-18a966dbd9be.qloud-c.yandex.net (myt4-18a966dbd9be.qloud-c.yandex.net [2a02:6b8:c00:12ad:0:640:18a9:66db]) by mxbackcorp1j.mail.yandex.net (mxbackcorp/Yandex) with ESMTP id Arbn6tmlSd-b7e8sZjq; Mon, 01 Jun 2020 15:37:08 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1591015028; bh=G1tdKoEj5u0IeOvuwPmSyZ1Bkd4kxnX5aPNmkUwjLXg=; h=Message-ID:Date:To:From:Subject:Cc; b=GNme8U1iVUNzLFv3VQ/8pUjwIRyMDa68Y4N5sYHj0hsv80d2qzR3ZNhZEXmve/PZV Tdb8d84s142zV2R1Vt4L7wNqWrkbgoTkN0EGF5j2D55QHKWFLfh48UXnxszQt38UIf 39NVnFdD9itz94WfJwLcNaGNaOlANazfMCXL1ZtY= Authentication-Results: mxbackcorp1j.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from dynamic-vpn.dhcp.yndx.net (dynamic-vpn.dhcp.yndx.net [2a02:6b8:b080:6420::1:8]) by myt4-18a966dbd9be.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id Ol7mDqdGP7-b1WG8Prs; Mon, 01 Jun 2020 15:37:01 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: [PATCH RFC 0/3] block: allow REQ_NOWAIT to some bio-based/stacked devices From: Konstantin Khlebnikov To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, Jens Axboe Cc: Christoph Hellwig Date: Mon, 01 Jun 2020 15:37:01 +0300 Message-ID: <159101473169.180989.12175693728191972447.stgit@buzz> User-Agent: StGit/0.22-39-gd257 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here is pretty straight forward attempt of handling REQ_NOWAIT for bio-based and stacked devices. They are marked with flag queue->limits.nowait_requests which tells that queue method make_request() handles REQ_NOWAIT or doesn't delay requests, and all backend devices do the same. As a example second/third patches add support into md-raid0 and dm-linear. --- Konstantin Khlebnikov (3): block: add flag 'nowait_requests' into queue limits md/raid0: enable REQ_NOWAIT dm: add support for REQ_NOWAIT and enable for target dm-linear drivers/md/dm-linear.c | 5 +++-- drivers/md/dm-table.c | 3 +++ drivers/md/dm.c | 4 +++- drivers/md/raid0.c | 3 +++ include/linux/device-mapper.h | 6 ++++++ 5 files changed, 18 insertions(+), 3 deletions(-) -- Signature