Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2489654imm; Mon, 28 May 2018 09:03:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkLq6SGOdnq9ArDZxzln3KDu8LtrxXpyzib7sbTe+6HRRb3OKpWCC8d1k//VT6A+YbMszE X-Received: by 2002:a65:5a0d:: with SMTP id y13-v6mr11288867pgs.15.1527523426034; Mon, 28 May 2018 09:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527523425; cv=none; d=google.com; s=arc-20160816; b=dy8PWAQOMZCirfxOiWfBQlhrpZywDOpHlgiCq4Uc8rz5dkcMSC5rCzDwfn/RX5ZPpF h5mM7Jsj+FZ1EU0P97P46ENYp5Zw2iVn27U2nkpv/lX92Bp4Evv2MGRkOWz02CtMM25h JaFmQmLx2zZ2X2Jykfeka8rqf9LHZ1mS5Rp2MY0XZkJjAEfzYwpTHNEzkC8YdZpQlHp0 UGCOQEtTsQKrFoml/oJsZt9w0IlWHWwMjoZ24sh635TFM1N4e4jaL3c7qUPaIsuHjth+ 2D11RaH3GFglAvjqorSNGRvGbCxnYtDUmkUye54x/aDPwtzQTAYxKmLYS0HMwMaEIn9z zXLw== 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:dkim-signature :arc-authentication-results; bh=47hdqxrR/gXCefGOcpBH80vbAvPOr71OCzoQpKhSc40=; b=AMIikUbPimWb0dx6O4LHBV4mDOiyR12GkyEAHLAQKWetqKZGNMifP8K8RngyYz4uxt iSdF3/oZOFyZ1ZBF6AVl1tw+pLt8ZHhAQwjkb7HmBLCzDwtVDZ8ceqjcvbKfKJlcwciA Mud0mLl8dOv5mkTAbWvAV3pc0idmI5YEbayvGR6+Y7hOjtK63BHP06yUvg7X7rj2uSz1 aIzLjO24L24fBCHwng+8PhYxpJ1H+chNw8Pdq5m+rj8KAFyGwJnC4pKc1+NJLab9CaXd w+s44acV9RJ2UUaf00dzQ1tt9vIR61t9vHfc7btKWYD0vLX+3kcHphH+V5vUv03ipkSi 6/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eXbYUU2h; 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 t189-v6si24486082pgc.163.2018.05.28.09.03.31; Mon, 28 May 2018 09:03:45 -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=@kernel.org header.s=default header.b=eXbYUU2h; 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 S933088AbeE1QCz (ORCPT + 99 others); Mon, 28 May 2018 12:02:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:35396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966181AbeE1KPN (ORCPT ); Mon, 28 May 2018 06:15:13 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3F2E20843; Mon, 28 May 2018 10:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502513; bh=JGdof4QMT6Yo42nkK8cyNr7WeJQyGGWgQvRqoqxFuic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eXbYUU2hlXKUixpUC32163Yr7q0Xn72EUUwz7zsD9DjQAsrwCqqmlj4YHPtTdIDDL te0Ya0+W4uAJGLVTHY8FjeuIxeWUbq6/8WzeDcmLxib1bXwC7eovWl4TwfnGO7I292 WIZqkUsbeM4j2LZ81DTuTf7tO3xeq7hsQt0Q3YEE= 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.4 028/268] dm thin: fix documentation relative to low water mark threshold Date: Mon, 28 May 2018 12:00:02 +0200 Message-Id: <20180528100205.259852694@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100202.045206534@linuxfoundation.org> References: <20180528100202.045206534@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.4-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