summaryrefslogtreecommitdiff
path: root/include/linux/dm-kcopyd.h
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2018-07-28 01:51:57 +0300
committerMike Snitzer <snitzer@redhat.com>2018-07-30 18:49:08 +0300
commit63c8ecb6261abcb79191a264778e8dae222e67cf (patch)
treec40e72bd99cdac2f87fea33df6cf666740c0d0cf /include/linux/dm-kcopyd.h
parent9ff07e7d634cb005e7c5dc5e2c28a06508eb4fbf (diff)
downloadlinux-63c8ecb6261abcb79191a264778e8dae222e67cf.tar.xz
dm thin: include metadata_low_watermark threshold in pool status
The metadata low watermark threshold is set by the kernel. But the kernel depends on userspace to extend the thinpool metadata device when the threshold is crossed. Since the metadata low watermark threshold is not visible to userspace, upon receiving an event, userspace cannot tell that the kernel wants the metadata device extended, instead of some other eventing condition. Making it visible (but not settable) enables userspace to affirmatively know the kernel is asking for a metadata device extension, by comparing metadata_low_watermark against nr_free_blocks_metadata, also reported in status. Current solutions like dmeventd have their own thresholds for extending the data and metadata devices, and both devices are checked against their thresholds on each event. This lessens the value of the kernel-set threshold, since userspace will either extend the metadata device sooner, when receiving another event; or will receive the metadata lowater event and do nothing, if dmeventd's threshold is less than the kernel's. (This second case is dangerous. The metadata lowater event will not be re-sent, so no further event will be generated before the metadata device is out if space, unless some other event causes userspace to recheck its thresholds.) Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/dm-kcopyd.h')
0 files changed, 0 insertions, 0 deletions