Received: by 10.213.65.68 with SMTP id h4csp2118721imn; Sun, 8 Apr 2018 20:10:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ehTpWOl1qsjyc7vPQtQ5nOf3yBexAlxbv4/ztMvltnv+YEv8DjwjJzLj3gCytv1U7FnOc X-Received: by 2002:a17:902:7185:: with SMTP id b5-v6mr36790613pll.221.1523243410063; Sun, 08 Apr 2018 20:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243410; cv=none; d=google.com; s=arc-20160816; b=Gf35lGoM8U/M2e4A86zL0bm+grqxpK8wEPERn6AeKpduqts5gLYAL6SN4PyHNgcVg2 f+iLNvbQvWveMtKcyvWvZ92GpHltcSVQ7ObjiE5N+t/eMfG5MKeQDrmleBS3s8RriqfO jF2PPR9jYM48LOLpDbqcCtMptks4nXRcGCrmTjPY3IVIVJQ3QrsJrggiIDdwNaDX/pcg Cmycbtv7eP2xrdAPClcLkYWbTDCtu820ZOVbw7m5drYVjBoA14QHyYQVdBlEfx5VPUmJ MFgsAYV5bkb+V8PZwaB8QHZAM8gUv85wU0ahtqM+kha2PzDuHCMSnj/qISYrPt7Q4ryL iT0g== 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=wm9kC6gXqChm7Lhkh+vQTepS1x7RFk5hOsuBK9FCgsQJKb7V4Q+GkzTKk9SXvLr/2S BVd4JTPbCpRKcTkq7DtgWYWiWT5+iuJEHFiI0pglx2SyPx86cERxhPk7vcOcO7/zCTFT W5k4wOrIMV9LLL8OitWN5Z4xVEJaUOsl1Cvv3qQV5uh/Rt1IuKFfC6p3nRWudxMmY+65 /Xmmxup9+QKZYHuyW4lvMJc/QIjGH65ovmMlKuYq3+q08OpDG16wq5E1X01A24sAZfeB kTxqt4BIcREhtfTxMP8rZujMSDaQisyf7yXFB/Kwgp9OGsXkHHZWN5BYfKzW0sn7vsQ1 X5rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=mlf+evzk; 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 s78si11921508pfj.259.2018.04.08.20.09.33; Sun, 08 Apr 2018 20:10:10 -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=mlf+evzk; 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 S932702AbeDIBzl (ORCPT + 98 others); Sun, 8 Apr 2018 21:55:41 -0400 Received: from mail-sn1nam01on0097.outbound.protection.outlook.com ([104.47.32.97]:22599 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932174AbeDIAc5 (ORCPT ); Sun, 8 Apr 2018 20:32:57 -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=mlf+evzkwBIqLcWTbVW7onyn27bX6x2NELe9zEMWsUDXt+txcpmj88+M5s9Jbrz7bA1+cPpTbtbo8JPjGSBzvEPQgpJXX+o00PbrM3gm0B84dVWrnJQ/zPrOLtRe3O4o/XcjJ7+9V5ttUbaLResTS07MYg0nkK3S9SRpHIDJjbI= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0902.namprd21.prod.outlook.com (52.132.132.159) 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:32:56 +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:32:56 +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.9 226/293] dm thin: fix documentation relative to low water mark threshold Thread-Topic: [PATCH AUTOSEL for 4.9 226/293] dm thin: fix documentation relative to low water mark threshold Thread-Index: AQHTz5lQeDTjgKgtekqIApcQBO2twA== Date: Mon, 9 Apr 2018 00:25:50 +0000 Message-ID: <20180409002239.163177-226-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-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;DM5PR2101MB0902;7:oZBtKnEXyrAENYxNQdoOmpHTmuW3BZKA8FNQ2QwVMdmMLS2MhG1gs52mKnHTdVhj8QN+LrMpUceZA0Ub6S9XDdec0hPG2LE29Yj9Z6ixvfUw212tb4EqhaxFKtOC0Tw23oQpIXJDC1WtIIDoU8XE+gxePpVvI+2JYLY9weSzpjm5cOddNLZCDp0zwklBBJGSrKdZcrwV2XxeSq0h22I7JxRdu0s1T1pI0LatkDElDuftWMYQFSVmBtXafXgGaMAC;20:nfENqRj7hGmienOx6Abhdy9FyAlxAw9lR1NOqi+Y+zHDVEhmJDpD2EE6NLRvKpf/OH24ijNufWudYElQsiJU0wblq14Ll7E1t6juuljV1iZuaiJfs4F76KskXDXtM/mEvbIl/c3pjVg8OpfK9d9LzR5upkYPXRg77kqOey2uww0= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: fd05d29f-8e0d-421b-9c5f-08d59db17039 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0902; x-ms-traffictypediagnostic: DM5PR2101MB0902: 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)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB0902;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0902; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(396003)(39860400002)(39380400002)(346002)(199004)(189003)(5660300001)(478600001)(86612001)(3846002)(6116002)(106356001)(25786009)(6486002)(72206003)(10290500003)(8936002)(6436002)(76176011)(2616005)(6506007)(2900100001)(97736004)(26005)(486006)(10090500001)(36756003)(81166006)(8676002)(81156014)(59450400001)(102836004)(2906002)(99286004)(11346002)(476003)(3660700001)(66066001)(6512007)(86362001)(53936002)(105586002)(186003)(5250100002)(14454004)(22452003)(6666003)(2501003)(446003)(7736002)(316002)(1076002)(110136005)(3280700002)(68736007)(54906003)(107886003)(4326008)(305945005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0902;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: 85I0FpJL2Ujt4MZaM5y4z9fBw1xaBhnu/dwdkC3/CoVMezQXyqExuM1oqrfkqFre9OBHvca9yQ8JcqVb9BFr+LdAiG8jDQqu0NWbjnzuDOf39IJMqZ6Rs4g9CAIKUuS5b4jX9W9hW8iiDdRJU5fZqk6zaPHHTvQyT6hl2vTUMs4b/Bo4XgCQsKx0WPxdBEH/jE3oDqmMTIR/qfr7O4LUVSb9nC194eJg1tHcLpdcL6fKNp258LOoFHD2Z+O0oC3dme2SgNRwjBobZMJ/8rTEhF+fi9V5F+P8MtXPk4oArLqrflfGKgS85HW5I8cBzXpjjBzRQmd73gpZ6yvj1HRpDWQB+YSNarmdT7mV351/fkBo0YhaeRDEnDDvDE8dB3PTn5zUM4ZXzrO1jiVciQmrwSJgQJ3s24lI1jDcVdig9EY= 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: fd05d29f-8e0d-421b-9c5f-08d59db17039 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:50.5192 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0902 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