1 stable fix for a dm-cache 3.19-rc6 regression and 1 stable fix for
dm-thin:

- fix DM cache metadata open/lookup error paths to properly use ERR_PTR
  and IS_ERR (fixes: 3.19-rc6 "stable" commit 9b1cc9f251)

- fix DM thin-provisioning to disallow userspace from sending messages
  to the thin-pool if the pool is in READ_ONLY or FAIL mode since no
  metadata changes are not allowed in these modes.
dm thin: don't allow messages to be sent to a pool target in READ_ONLY or FAIL mode

You can't modify the metadata in these modes.  It's better to fail these
messages immediately than let the block-manager deny write locks on
metadata blocks.  Otherwise these failed metadata changes will trigger
'needs_check' to get set in the metadata superblock -- requiring repair
using the thin_check utility.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
1 file changed