Received: by 10.213.65.68 with SMTP id h4csp2202503imn; Sun, 8 Apr 2018 22:23:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx49grwLGoyOtI/Q/7UgGDjnrVy+JKPgsSDEvjFqVjTTfjxCvhfWV1IvC6YtWQb3VBgm0B1Nb X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr37977430plb.338.1523251434907; Sun, 08 Apr 2018 22:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523251434; cv=none; d=google.com; s=arc-20160816; b=BVXZ3fHGZmtsHjYsFwyX1gbckUa91i6ulE70rGVK11+k+b7BjUVz9Zw7kgx8PAHrhs 1ih2OAe8fHIWB4d0cFIg/fgG4xzLuqivec2qjAZ6fdYyOiCCV8fNUMsL4x6L0PImOJur lW9JiLDnXyDGRrNsOtMqB9QE+G5psc4+SSgjEQw0I52i3VMmbf1FkXxl/klSmtwmS+fL 1iBd2apjdifKzj71SPhYVbZ5SWQ34clWgZ96lp5TDeTxHKpJpP3YtRrXlSj7FFTB5jlM M3UhALCaBadjP9FToLpyUzboHzaiOHFosyX+XxZ4jyBlCtgtKv0KN9pBRrvhihN2+0j0 J3MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=B1igtjuQFrDHBLBxodMJSweTYpWN8RPOP1VZ5/2ud3s=; b=nDrQX7SFHpEOa4f5wQKGu3YET6Rl4/k7WMVbh5tIm2nIB8qxv3M8glNjA6DyJ1U4oc nYVeNSgqdCpq1JfagN3Rf1nHOKmk6UTuuDRrKyI+UjJQwOgcOAOCrnPhg/GEgGn3cz9W obcM8RNC4jhlMefFA6gA7lGtsegxPhXTF+ZFDjgZDzDf/q3JITgEp5u50xKa1o7zEc9M I0whIL9gVh9WIUc81mK3/or8iOW7Q6bwH51ld9TBnDpWVIDjuQTYKdXrbXVBeg63LkIN D23Pn2IsUTPgZyikfj1PK4gZ1qKdCzLFD0Cgxmi8A6Mwiagnoegn+E2VFH27jnezMVeJ TGlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=HakT1W1R; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18-v6si2263880pll.310.2018.04.08.22.23.18; Sun, 08 Apr 2018 22:23:54 -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=@microsoft.com header.s=selector1 header.b=HakT1W1R; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754756AbeDIAWy (ORCPT + 99 others); Sun, 8 Apr 2018 20:22:54 -0400 Received: from mail-sn1nam01on0122.outbound.protection.outlook.com ([104.47.32.122]:20813 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754709AbeDIAWt (ORCPT ); Sun, 8 Apr 2018 20:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B1igtjuQFrDHBLBxodMJSweTYpWN8RPOP1VZ5/2ud3s=; b=HakT1W1RjeGr8upihOydEvdxD+7T68U0TFt0wkd7rsiF925Aq5q491Sqd+dVlW9EReTSQjH6jUUyLj68as+GVv0hHSPdql2IKwM+rq4tnsmNt1jazKY8g3V83ahmxD4hlgCI/9kIc5t4cIPIn1HQE1PMuTSWWsbJ34NVtAh44ik= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0966.namprd21.prod.outlook.com (52.132.133.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:22:44 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:22:44 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: mulhern , Mike Snitzer , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 032/161] dm thin: fix documentation relative to low water mark threshold Thread-Topic: [PATCH AUTOSEL for 4.14 032/161] dm thin: fix documentation relative to low water mark threshold Thread-Index: AQHTz5iEjGiVTWR7Ykalw5LQdzXY8g== Date: Mon, 9 Apr 2018 00:20:09 +0000 Message-ID: <20180409001936.162706-32-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0966;7:gyRKnqXLDinlz0a/dB2lkGps4BzqRf09XP2yjAXiCGKqFmLumwH/FnPmkzTBALatro4pzqzbub1RHbUAlJRSCJS41PKtaRtcGm3JfG7iFoVZltwFtgN6zR4oi3SnDxccDaTv7sezA8xGb1c6N34te3cb+7j/F8rEP/07dOOL4z+dmwVPQykIBw1QvRCJwKY+2cLdg0h9WO7wdmCRAl/i3q1G2Rc6ozG09paIHRwdqTTQHKoqNbzHo1M2mgz2lmTA;20:HvDag95rIin6hOXmufA8nn1bQ+iISyWPcpmZj3YUZSHcBbTJruEoukSgxa6n02rSyaoMg4OxozKYGW9P5ZzRLElp+UpSL6DMZyAZzMR6D/Ug6C+VAlvroUB8KW2pMsrWdeFgA2J4+tRJDp2UP049z+pufEhi3hu/XsaR/Yd8ykg= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: a33f36b7-a589-4211-b03d-08d59db003ea x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0966; x-ms-traffictypediagnostic: DM5PR2101MB0966: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0966;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0966; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(39380400002)(396003)(366004)(199004)(189003)(6512007)(316002)(59450400001)(6436002)(186003)(6666003)(2900100001)(8936002)(486006)(6486002)(6506007)(10290500003)(81166006)(22452003)(25786009)(1076002)(81156014)(53936002)(106356001)(10090500001)(5250100002)(107886003)(102836004)(76176011)(8676002)(66066001)(2501003)(446003)(476003)(36756003)(99286004)(478600001)(86362001)(72206003)(2616005)(68736007)(5660300001)(305945005)(3846002)(6116002)(26005)(86612001)(14454004)(97736004)(3660700001)(4326008)(2906002)(110136005)(54906003)(3280700002)(105586002)(7736002)(11346002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0966;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: OjbsrDRX5egSYqhX+2UfAXvO4+ewfqpqlmNMVkWnjIlozJTBwnlPQyQVVc/cCjAhaD2p2TqiQorF4nmCSfE3Vv7+irGQ1+WPI2d3iZIzvz9RaCSGb2BQ3E1tLGcDIlFAmefZxh/EoeKer4MzMuv7XZl7Yy+Ia2xQpeCgMey7urwyTLI7Voa1Fo+3guDKjsGpYi9BifQD0Nu9wd9f+jLDR2Mv/6daaZqOrvTE0IXImVvSeneVmlkaWC3/DG88oxOa9lQko9sUoUAMpeL4ERO3XD/K9af7/6J/tzx7b4lBZa4ACldH57QYYncHXXAWyrJ/pcBJ+DnckS5ko5NBKLkC9GWMeYWlEaSLuCIpNosJ5CmWeMg7I9MpOvDADCKagpS1rFDSoy01i5XiI084sIpV3M1wEEGb1AupCfsRy1I7Ygg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a33f36b7-a589-4211-b03d-08d59db003ea X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:20:09.2853 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0966 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: mulhern [ Upstream commit 9b28a1102efc75d81298198166ead87d643a29ce ] Fixes: 1. The use of "exceeds" when the opposite of exceeds, falls below, was meant. 2. Properly speaking, a table can not exceed a threshold. It emphasizes the important point, which is that it is the userspace daemon's responsibility to check for low free space when a device is resumed, since it won't get a special event indicating low free space in that situation. Signed-off-by: mulhern Signed-off-by: Mike Snitzer Signed-off-by: Sasha Levin --- Documentation/device-mapper/thin-provisioning.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/device-mapper/thin-provisioning.txt b/Documentat= ion/device-mapper/thin-provisioning.txt index 1699a55b7b70..ef639960b272 100644 --- a/Documentation/device-mapper/thin-provisioning.txt +++ b/Documentation/device-mapper/thin-provisioning.txt @@ -112,9 +112,11 @@ $low_water_mark is expressed in blocks of size $data_b= lock_size. If free space on the data device drops below this level then a dm event will be triggered which a userspace daemon should catch allowing it to extend the pool device. Only one such event will be sent. -Resuming a device with a new table itself triggers an event so the -userspace daemon can use this to detect a situation where a new table -already exceeds the threshold. + +No special event is triggered if a just resumed device's free space is bel= ow +the low water mark. However, resuming a device always triggers an +event; a userspace daemon should verify that free space exceeds the low +water mark when handling this event. =20 A low water mark for the metadata device is maintained in the kernel and will trigger a dm event if free space on the metadata device drops below --=20 2.15.1