Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1514290pxb; Thu, 28 Jan 2021 20:12:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzfRv/nEIZhZ1WK7S4/0Ky3i9PKHQYvByRLTV8p50nt4rGBX5SlR6qMfAFf7oGH9RFaCrA X-Received: by 2002:a50:b223:: with SMTP id o32mr3071143edd.79.1611893547957; Thu, 28 Jan 2021 20:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611893547; cv=none; d=google.com; s=arc-20160816; b=Pv6NrYzBEi3HtWepJ8szEETDZHbi2u+pGSBMt2E5PymZouVr3ro+Ex9ObExZG0bekJ dFNDH/I/MVKCirdQjLaiFQHFFHHHH2rqvMTOeQ7w2umclk0yBiMMjjN0lr1eeVP9IcZI 25NrfMyyH6NQ2XPb5WKqxDFbmsyAA+LvaaK06BY5FlOoQOZxDiKVKzbfaQYGb82odEyJ hjFl3eDjMQeBbkYhsIe9n5+Dzn4DgGKUOm9K71hqvJ/aFfaV+/+liUtGAbMNhpQcqdGj QZHVB7SKvs25RmyjhsrLaMUXhLIQhUj/smGk4NSWKBnYYlIXMsiS07sJvhp4SE01uack v0Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=WZWRYxFQt5Vb3eG5u4M368QXhG7uK7mseqihDVcJmwQ=; b=pjYkXroeMGRsjVjXiiRGNHPQCumZonSPdbD0DsgrzRFQnd07KlLjKHAPOhPVR0kzwV PjMGb97U9p3O6x33hEGLzTHN8OG8ZEBsVtZZ6UYjx9A5MDtH9iBfnmjWOHwSzP0DQBjc /dJGssOAZXaHTnxUyVNK38nchOse1YY2vnYRxrtavt4rWhnYNxwTsMwPFmNbWxXk8xQS fsqd9oPGq1shOW+K2os/KQJN/J0DUo1vQtV3TdFBaduPxOjsShX8YF5QgAux7viVjnSG lQ+oKzJcDp/WfKt0BLptwNozgxMuTcYeXb1H2bxc08Af0fk6nT0K5S7JyPaU7Jboyeui x09Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jkgfgx5w; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si4031216ejo.417.2021.01.28.20.12.03; Thu, 28 Jan 2021 20:12:27 -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=@samsung.com header.s=mail20170921 header.b=jkgfgx5w; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231826AbhA2EHf (ORCPT + 99 others); Thu, 28 Jan 2021 23:07:35 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:49047 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231593AbhA2EHc (ORCPT ); Thu, 28 Jan 2021 23:07:32 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20210129040650epoutp04610fcf46c6c9b24316313ea50c5d414e~emFXEbQd40749307493epoutp04H for ; Fri, 29 Jan 2021 04:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20210129040650epoutp04610fcf46c6c9b24316313ea50c5d414e~emFXEbQd40749307493epoutp04H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611893210; bh=WZWRYxFQt5Vb3eG5u4M368QXhG7uK7mseqihDVcJmwQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jkgfgx5wXpCRqTkt818jDXl4RE2LEqDJg1xUn2vLgTH0Yh40+4SvSeih9FieNt1fk jjumWk+mYW+uIc1lnBcpEKAoRRZj+qfEiIHIDZajyPwFCTONnAQcyJ9Sa9FH35D8rx H7zllb61ceCsmkBKE0HOwg3tjzTZmvfUigQEoy+I= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20210129040649epcas1p46013feedbc3a015895fe05dbe74de32d~emFVtTOFM0594205942epcas1p4M; Fri, 29 Jan 2021 04:06:49 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.159]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4DRkJ11zl9z4x9Q9; Fri, 29 Jan 2021 04:04:49 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id D5.EE.02418.16983106; Fri, 29 Jan 2021 13:04:49 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20210129040448epcas1p44da94c82ac4fb82d77c452bda56d6b09~emDldKF071322813228epcas1p4Q; Fri, 29 Jan 2021 04:04:48 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210129040448epsmtrp245af0a01e82c7b0a7f5c673073d94f5e~emDlcUR-80874008740epsmtrp2g; Fri, 29 Jan 2021 04:04:48 +0000 (GMT) X-AuditID: b6c32a35-c23ff70000010972-0f-60138961b2b1 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 12.39.08745.06983106; Fri, 29 Jan 2021 13:04:48 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.99.105]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210129040448epsmtip2574986e8da2ce63b8b7ea1c1373088af~emDlJFu1P1343513435epsmtip2J; Fri, 29 Jan 2021 04:04:48 +0000 (GMT) From: Changheun Lee To: hch@infradead.org, Johannes.Thumshirn@wdc.com, asml.silence@gmail.com, axboe@kernel.dk, damien.lemoal@wdc.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ming.lei@redhat.com, osandov@fb.com, patchwork-bot@kernel.org, tj@kernel.org, tom.leiming@gmail.com Cc: jisoo2146.oh@samsung.com, junho89.kim@samsung.com, mj0123.lee@samsung.com, seunghwan.hyun@samsung.com, sookwan7.kim@samsung.com, woosung2.lee@samsung.com, yt0928.kim@samsung.com, Changheun Lee Subject: [PATCH v4 2/2] bio: add limit_bio_size sysfs Date: Fri, 29 Jan 2021 12:49:09 +0900 Message-Id: <20210129034909.18785-2-nanich.lee@samsung.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210129034909.18785-1-nanich.lee@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Ta1ATVxTH5+6GZGEaZlmw3vKhpTsyHaCBxJBwa8HS0dq1dkamTh+0H8IK 28AQkjQb+nSmKg81gJJBJ4IRsZVSKIGWV4EWR0BwKFhn5FGFQYhQA3aAlpQKAtokKy3f/uec 37n/e+6DwKlJcSiRoTdzJj2ro8UBopbuCJmMPRGcIj+SG4DsNS0AfTd+Sozyjv2Dof7irzBU OH3UD61b7mBoycmjjtEoNNhuF6OukhwM2RrtOBqZGJCg7jvDIuS8ZMXRr32Lfqh8KhE9rOoB aGH5Nwn6pbUER/UdK+LEEMaaMy9h2srGJUzjt5HM4PVspqHmhJhZuDwsZk421QDG3fAsc+xK AZbk/74uPp1j0zhTGKdPNaRl6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jtFh9t5/N orX9G5PF6QmLmCx6njSxWvztusdk8fVhscXeW9oWl3fNYbM4NLmZyWL65jnMFtfun2G3OHzv KovFwyUTmS3OnfzEajHvsYPFr+VHGS3e/7jObnFqx2Rmi/V7f7I5iHhMbH7H7rFz1l12j80r tDwuny312LSqk83j/b6rbB59W1YxenzeJOfRfqCbKYAzissmJTUnsyy1SN8ugSvj18ZLLAUr uSqerHrE1MD4h6OLkZNDQsBE4sbhTWwgtpDADkaJiy8NIOJSEsdPvGXtYuQAsoUlDh8u7mLk Air5yCixaPFXZpAaNgEdib63t9hAEiICy5kkDvxezQriMAu8ZpToeryIBaRKWMBU4sjpR2Ab WARUJZ6fOc0EYvMKWEssPXiQHWKbvMTT3uVgUzkFbCRuLpjHCLJZCKjm2yMtiHJBiZMzn4CN ZAYqb946m3kCo8AsJKlZSFILGJlWMUqmFhTnpucWGxYY5aWW6xUn5haX5qXrJefnbmIER52W 1g7GPas+6B1iZOJgPMQowcGsJML7do5QghBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeC10n44UE 0hNLUrNTUwtSi2CyTBycUg1MZxYrZfVN1TlzNWQxb/qMENmNWnbh/yUFlRYwxTW9XZE8YzuH 20SLhzbzsh7z3zu9dLlh269T/wL3+1Z+00gXm7jkwZNjGWucxFKzTvy44H/DLvXXhk12Rgw3 Pvac3HSSpWf2oc/ll31ym53mvVuzzPWEotKRNIfgA0yOjGtOy1yPfb6O9dertLczRRcftC4R 8f6/dGGVrmGilPudVPld9fMKPS/eybqvcnr7TSGV3xtncaeEPqt/vy70cvNJ6a31xgxZLzdW 9nxqXBGqlnz6yoLSnJNzn50on5twyUV7+tkzMkoZBvEVf/4tvLbpyDv1MwmTQtO7p533ZI/7 eU1R5CnDl9KpFzT2VE+qiZctzVFiKc5INNRiLipOBADQqmIrKQMAAA== X-CMS-MailID: 20210129040448epcas1p44da94c82ac4fb82d77c452bda56d6b09 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210129040448epcas1p44da94c82ac4fb82d77c452bda56d6b09 References: <20210129034909.18785-1-nanich.lee@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new sysfs node to limit bio size. 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, &queue_random_entry.attr, &queue_poll_entry.attr, &queue_wc_entry.attr, -- 2.28.0