Received: by 10.192.165.148 with SMTP id m20csp570589imm; Wed, 25 Apr 2018 04:27:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Fe/gvX/+1fahpDr2LtOx/7t82Ko/fJVBo9Nryh2GTQL+HAMZc0S1SYTIRSWSqR0UFf2Rz X-Received: by 10.98.58.28 with SMTP id h28mr20886528pfa.209.1524655648454; Wed, 25 Apr 2018 04:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524655648; cv=none; d=google.com; s=arc-20160816; b=KzWQqUmGV+Xa2atFUtaaffd8MHo7HFVwSR1UrIsgmqMCcivhgrErBbIBXWFGW3QOJ+ NsuY469I7DLGL/u3IrEgKhhFcDcAO9ihJ2kV44YqF8oX39rRPuzxBZMgSHO7BkZYvlCm +A7CvR3nmpisvk8QipQm1Ao5rc6hDRwwboWbV8w9uDxvDSb8+Rn9r7znGk58VZP6NQEt xFWG+Odlt2cooSR7iCMgKyKdbwmOI2RwvoR6xuJjV9CHtgyZ3x5crjbkxseawIiSJ4uT 3jxnE1PCfKoForso1+3sHnjbHbCKkZnhDqsMoJa1wz2qmptkZeHLQHZS5VnQJk6zbwrh p/Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=DTWRJFmKZsJJ9SCRCXAp42KYAwwDZ1xz5cRzWl3RqE4=; b=GIHZc7HaAduNbv9tbRQFcu5a7U8yzHav9JvEzNROY92M2ctoQF0iz9CX/TQoWvJGsg 32CXkpnRDFNm2KkVq3btTKstTRZ0uaIRdQBUlwwk/a9PmA+RysqIP4+uIPchZfAAJ4q9 9ixjEThWL3/HuIyeY4gYJfaDKCJ4giZv52cHAIsYvP/apTTxvEd0vS+uogHb1GZrsXwX ZCJwb/XHHyhkbfwTqWwiH3olyvhLjZn3t+Swis71plWfy6Q2sLGNUGbF1741NpdaWshI TduWpjXFzAkOYLGIMHrjfSMz0pg0VU5fg++F5+bL9C16hluy9VpNUqAfjHCcdtF58Qve ul3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si16696023pln.468.2018.04.25.04.27.13; Wed, 25 Apr 2018 04:27:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752862AbeDYKiu (ORCPT + 99 others); Wed, 25 Apr 2018 06:38:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51600 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbeDYKip (ORCPT ); Wed, 25 Apr 2018 06:38:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D0733266; Wed, 25 Apr 2018 10:38:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, mulhern , Mike Snitzer , Sasha Levin Subject: [PATCH 4.14 046/183] dm thin: fix documentation relative to low water mark threshold Date: Wed, 25 Apr 2018 12:34:26 +0200 Message-Id: <20180425103244.414480542@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- Documentation/device-mapper/thin-provisioning.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- 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 o 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 below +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. 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