Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp157489pxb; Wed, 3 Feb 2021 02:10:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8onQfVMA0S82vwwUfM5aJGioM/z1/Qw4EOMuoFYoDV8/IRGJSo5uCzEEqmJVQO+1EqZWd X-Received: by 2002:a50:ec06:: with SMTP id g6mr2194893edr.12.1612347010946; Wed, 03 Feb 2021 02:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612347010; cv=none; d=google.com; s=arc-20160816; b=mEFrmmjHpG+6yNIIJ+v/c+QY+/Z94+8ToqbCkj6J3/vnjd2Ymld/uCSKqbfYsNtzUg fsG9dzZglMAwa3VrYxt8i4SmALEpwDOavdoN2bizXEfR0Mh8z/XyOKNdlCUR7g6fb2Ie Rtk697QAjXDUd+3gegJQ1QqPI8swfvnjTY3p5SIwXRasNxCUsa9r2e8fRrKf0rQ2HVVV Fe1pYRE+5TrzlaHgVgQva9KNfxblWzpnpQAR4S4ZxJX25GHQrM2+yP8UETCcLlZR6fAQ li9EfRkM8ZdbNur6CBWxlzoMGN+3s62conWuvO1F1D1gFaxoRBJsGCrJm/BigeH/ziA+ 3LKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DO8+Jb2Eulyjb4EcPn6OU3K/OIvxmRH4lHvV5XfHl6M=; b=cR7AiIiQRiB4XWTB5CnVzfEPXPTNrL72plq7oYLEjppwpJ7TqY81xWR7tkLUYcCadS pFZJp0V25Is0bToLEsLOlf6EiBU9nuQbkz2J21hEOTIsowxd5AmoLPTOMheHS0wXRa53 Td7DKFzMqiNNKQ1n36kjzQNL1nLY7d25fVRkQ/WgLWIKXMP7T3HvMAQhPNYRpk1JQ0h0 Cg74tg8ELWTxe5sMnLY8ySEx65PCEBQhBUyBk05T6AyfEGRJ5juEGw+H0HkIEPAiDuWu mOsbLXXJ5zc/DKWdSgl8G/yiUgAek+PMavAvMJwVf34U7kNhQbt9bzIVhOG+mldXtRyc Z0Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hvK19omV; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy11si141956ejb.470.2021.02.03.02.09.22; Wed, 03 Feb 2021 02:10:10 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=hvK19omV; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233379AbhBCKHS (ORCPT + 99 others); Wed, 3 Feb 2021 05:07:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:50248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbhBCKHE (ORCPT ); Wed, 3 Feb 2021 05:07:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 77B216024A; Wed, 3 Feb 2021 10:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612346783; bh=/EURuZNeGu0ap6ghqbj8w47olfrSXpAmMx9BST4FI40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hvK19omVP7DG+xpldCjNoTm4UJiEaQcvEggP1+ILqvkdTwsKLnCZwuzEab9Pjl1GA R1rRBS2VyuR8gWeOpIx3Xj+atNrn269Omb4hhYMp60dONuJYVPzgHGfiraDScO6tdk bmq0Sx2pY5rn4+0PqAuLqj1M1o5aPLpcdmO/epS4= Date: Wed, 3 Feb 2021 11:06:20 +0100 From: Greg KH To: Changheun Lee Cc: Johannes.Thumshirn@wdc.com, asml.silence@gmail.com, axboe@kernel.dk, damien.lemoal@wdc.com, hch@infradead.org, jisoo2146.oh@samsung.com, junho89.kim@samsung.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, mj0123.lee@samsung.com, osandov@fb.com, patchwork-bot@kernel.org, seunghwan.hyun@samsung.com, sookwan7.kim@samsung.com, tj@kernel.org, tom.leiming@gmail.com, woosung2.lee@samsung.com, yt0928.kim@samsung.com Subject: Re: [PATCH v4 2/2] bio: add limit_bio_size sysfs Message-ID: References: <20210203092247.29258-1-nanich.lee@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203092247.29258-1-nanich.lee@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 06:22:47PM +0900, Changheun Lee wrote: > Add limit_bio_size block sysfs node to limit bio size. > Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set. > And bio max size will be limited by queue max sectors via > QUEUE_FLAG_LIMIT_BIO_SIZE set. > > Signed-off-by: Changheun Lee > --- > block/blk-sysfs.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c > index b513f1683af0..840d97f427e6 100644 > --- a/block/blk-sysfs.c > +++ b/block/blk-sysfs.c > @@ -288,6 +288,7 @@ QUEUE_SYSFS_BIT_FNS(nonrot, NONROT, 1); > QUEUE_SYSFS_BIT_FNS(random, ADD_RANDOM, 0); > QUEUE_SYSFS_BIT_FNS(iostats, IO_STAT, 0); > QUEUE_SYSFS_BIT_FNS(stable_writes, STABLE_WRITES, 0); > +QUEUE_SYSFS_BIT_FNS(limit_bio_size, LIMIT_BIO_SIZE, 0); > #undef QUEUE_SYSFS_BIT_FNS > > static ssize_t queue_zoned_show(struct request_queue *q, char *page) > @@ -615,6 +616,7 @@ QUEUE_RW_ENTRY(queue_nonrot, "rotational"); > QUEUE_RW_ENTRY(queue_iostats, "iostats"); > QUEUE_RW_ENTRY(queue_random, "add_random"); > QUEUE_RW_ENTRY(queue_stable_writes, "stable_writes"); > +QUEUE_RW_ENTRY(queue_limit_bio_size, "limit_bio_size"); > > static struct attribute *queue_attrs[] = { > &queue_requests_entry.attr, > @@ -648,6 +650,7 @@ static struct attribute *queue_attrs[] = { > &queue_rq_affinity_entry.attr, > &queue_iostats_entry.attr, > &queue_stable_writes_entry.attr, > + &queue_limit_bio_size_entry.attr, Still no documentation for this new file? That's not allowed :( greg k-h