dm thin: disable discard support for thin devices if pool's is disabled
authorMike Snitzer <snitzer@redhat.com>
Tue, 8 Sep 2015 12:56:13 +0000 (08:56 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 14 Sep 2015 01:32:10 +0000 (21:32 -0400)
If the pool is configured with 'ignore_discard' its discard support is
disabled.  The pool's thin devices should also have queue_limits that
reflect discards are disabled.

Fixes: 34fbcf62 ("dm thin: range discard support")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 4.1+
drivers/md/dm-thin.c

Simple merge