Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1276571ybb; Fri, 29 Mar 2019 00:58:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+lBAJeTQofeJwpM22ZjYKojxxzI89ZEP3Zg+yCmcYjhfMwXraeh2WwjlX0ie3t4K5op9T X-Received: by 2002:a65:664a:: with SMTP id z10mr1020892pgv.443.1553846327816; Fri, 29 Mar 2019 00:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553846327; cv=none; d=google.com; s=arc-20160816; b=D7uyEq0vnssmpl2nGOE4bG6xfQ/2+4dgwGmVO2Z1bT5zTv8gWL8R+iJJLvjDCkz38G fou68995bJggyrXmwGjFOAfZz3jTsh4x8y3fFiV8B4AKi+xe2iPVmZHfFpyR8iN5QYsV tW/zS7WQ2Jt3Gkrap1hKB7QyiylGVCZuTpF/YQyMUHD690/cSsD3IGEqolNKU/ej6Ov+ 85isrL76+Ha55zn6OKoOEzRi2vscp+w8gksgB285ELntMyR9aA5K8PDWtDvqWLU0nCos weKY9plr8KAzO0WofzTuHVmlwq3vdkTJtXV6e5/gSfQshwqsCIiBzWtEimPZxXleLY7p es7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=3ABOjlv0lfK3kx85YYrNVqMMcVW6sZA4ZmppvdcM598=; b=qPCRjrCrGptj6cNUnvQUk406v7hdUoBcHBY5GZSrtgBzQ8lyP6gOEokMXGwQMwUFqF dpvEIN+lOcGIcxUS4RzGi4uMVRUo6yGdbovRJk3IgcCDbUC6t9KANu/UJa7DIlNCxYQp kDFtoR14qaTc7Cf4m034HgNvLb+F5lVvV9VHpcy7VJbElzNpgBe/FZQdHhF3KwZ8XNuB +XIi6tROyZazGOWEVYZOKZHQvoaOcN9U9MUT2j/F+Y+SO16SUWU22JZ+hcdxI68aKuC5 f6UpRg4NfIOQ3ovEbqoowlye4CKVl55t69F1NclCWYB66UWHyzTurcRCPPevSEaBPQST juWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pdd5xlD8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k71si1242119pgd.583.2019.03.29.00.58.32; Fri, 29 Mar 2019 00:58:47 -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=@samsung.com header.s=mail20170921 header.b=pdd5xlD8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729032AbfC2H5v (ORCPT + 99 others); Fri, 29 Mar 2019 03:57:51 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:48426 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728982AbfC2H5u (ORCPT ); Fri, 29 Mar 2019 03:57:50 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190329075747epoutp01bfda0d45c888b4a62685db863e232d71~QXvJ_MoV90504405044epoutp01e; Fri, 29 Mar 2019 07:57:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190329075747epoutp01bfda0d45c888b4a62685db863e232d71~QXvJ_MoV90504405044epoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553846267; bh=3ABOjlv0lfK3kx85YYrNVqMMcVW6sZA4ZmppvdcM598=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=pdd5xlD8o7DTvUNMNMd/PqF9PypJhYGe9+1mqD8K4n+1El1qTvTTC4+HY1IZtdhfD YAa4NhCvDZ62bpSMwuutwaC7VOdB8JGIvKXOLdkwf6f6E2ilObcel4u4PmPjx6GzOn iYeLWmaESUZQ2hCCe6tNU/2oJJ+iYnuvasHgiTRM= Received: from epsmges1p4.samsung.com (unknown [182.195.42.56]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20190329075746epcas1p2fb83ec41e21b545c68e7a893a5e1ff50~QXvJhQqcL1199211992epcas1p2I; Fri, 29 Mar 2019 07:57:46 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 3A.BB.04257.AFFCD9C5; Fri, 29 Mar 2019 16:57:46 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20190329075746epcas1p19e5a93c1f593b5fed3f98eddf9159aa5~QXvJUveL93185131851epcas1p1l; Fri, 29 Mar 2019 07:57:46 +0000 (GMT) X-AuditID: b6c32a38-5e3ff700000010a1-c2-5c9dcffa3684 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A7.7F.03598.AFFCD9C5; Fri, 29 Mar 2019 16:57:46 +0900 (KST) Received: from test-PowerEdge-R720.sa.corp.samsungelectronics.net ([107.108.221.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PP40008VBFTTN20@mmp1.samsung.com>; Fri, 29 Mar 2019 16:57:46 +0900 (KST) From: Kanchan Joshi To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Cc: axboe@fb.com, prakash.v@samsung.com, anshul@samsung.com, joshiiitr@gmail.com, Kanchan Joshi Subject: [PATCH v3 2/7] block: introduce API to register stream information with block layer Date: Fri, 29 Mar 2019 13:23:47 +0530 Message-id: <1553846032-4451-3-git-send-email-joshi.k@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1553846032-4451-1-git-send-email-joshi.k@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsWy7bCmru6v83NjDA5NVLD4PX0Kq8X/PcfY LI7+f8tmcf7tYSaLvbe0LWbOu8NmsWfvSRaLy7vmsFnMX/aU3eLKlEXMDlweE5vfsXvsnHWX 3WPzknqPvi2rGD0+b5ILYI3isklJzcksSy3St0vgyli74hdLwSqOirPnbjM2MP5i62Lk5JAQ MJFY2nmEuYuRi0NIYAejxKct71khnO+MEs93HGPqYuQAqzo2PxykQUhgN6PEuRWSEDXTmSTW /HnNDFLDJqApcWFyKUhcRGAOo8SyfdOYQRqYBcol/k65yghiCwvESXS37wbbzCKgKvHh1XMW EJtXwEnibt9aFoiL5CRunusE6+UUcJb4eL2ZBWSohMASNokFU58xQhS5SBzY0cUKcZy0xKWj thDhYolfd44yQ9R3MEpcb5gJNdRe4uKev0wQB/FJvPvaA9XLK9HRJgRR4iGxcNMsFojHpjFK dL05yTiBUWIBI8MqRrHUguLc9NRiwwITveLE3OLSvHS95PzcTYzg6NOy2MG455zPIUYBDkYl Ht4ZO+fECLEmlhVX5h5ilOBgVhLhDTw3N0aINyWxsiq1KD++qDQntfgQozQHi5I473oH5xgh gfTEktTs1NSC1CKYLBMHp1QDY+NdDtZl/09UnrTYt+NAf+66Ur1dTU8+3XQu+7y/2jVuwZEP fpPYgyc7SMl9cLv5tlPTnVXkm/ZXTpH9C0VPH7j1kH2a5a11bUdvqTRPU5e/VvLF9fjrKNNp HQWLNCKKJnyWWvZb98X7a9seNqbddlpUz/07qI+rePHMEn6jowsOnBYJv2XHkKfEUpyRaKjF XFScCACWpPfYugIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOLMWRmVeSWpSXmKPExsVy+t9jAd1f5+fGGJxbIGzxe/oUVov/e46x WRz9/5bN4vzbw0wWe29pW8ycd4fNYs/ekywWl3fNYbOYv+wpu8WVKYuYHbg8Jja/Y/fYOesu u8fmJfUefVtWMXp83iQXwBrFZZOSmpNZllqkb5fAlbF2xS+WglUcFWfP3WZsYPzF1sXIwSEh YCJxbH54FyMXh5DATkaJmw3fWSGcmUwS/asnMIEUsQloSlyYXAoSFxGYwyjRs3s9K0icWaBc Ysomzi5GTg5hgTiJ7vbdbCA2i4CqxIdXz1lAbF4BJ4m7fWvBbAkBOYmb5zqZQWxOAWeJj9eb weJCQDVr7zewT2DkWcDIsIpRMrWgODc9t9iowDAvtVyvODG3uDQvXS85P3cTIzC4th3W6tvB eH9J/CFGAQ5GJR7eGTvnxAixJpYVV+YeYpTgYFYS4Q08NzdGiDclsbIqtSg/vqg0J7X4EKM0 B4uSOO/tvGORQgLpiSWp2ampBalFMFkmDk6pBkaVx2dzb8WzaZk6yU8x/9P1U7Tzx5K8Bclt R7KkdWaYmO+46uFf+kF/64PLle26d6fuCli0m+vbsfueM0pYPdxmVvwsl9/Y/0s7bMrmYEnL YoZfH855RplbneubpnPu6AVpjXtXtr8qVLh/UEQl6w7z93trk1jmiz9SC72Zd/lH4F226svr LY2UWIozEg21mIuKEwGf7nWnKgIAAA== X-CMS-MailID: 20190329075746epcas1p19e5a93c1f593b5fed3f98eddf9159aa5 CMS-TYPE: 101P X-CMS-RootMailID: 20190329075746epcas1p19e5a93c1f593b5fed3f98eddf9159aa5 References: <1553846032-4451-1-git-send-email-joshi.k@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This associates stream limit (count of streams exposed by driver) with request queue. Signed-off-by: Kanchan Joshi --- block/blk-settings.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/block/blk-settings.c b/block/blk-settings.c index 3e7038e..bb0da61 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -231,6 +231,18 @@ void blk_queue_max_discard_sectors(struct request_queue *q, EXPORT_SYMBOL(blk_queue_max_discard_sectors); /** + * blk_queue_stream_limits - set stream parameters + * @q: the request queue for the device + * @nr_streams: number of streams supported by device + **/ +void blk_queue_stream_limits(struct request_queue *q, + unsigned short nr_streams) +{ + q->limits.nr_streams = nr_streams; +} +EXPORT_SYMBOL(blk_queue_stream_limits); + +/** * blk_queue_max_write_same_sectors - set max sectors for a single write same * @q: the request queue for the device * @max_write_same_sectors: maximum number of sectors to write per command -- 2.7.4