dm cache: set needs_check flag after aborting metadata
stable inclusion from stable-v5.10.163 commit 18a489a3fda74a0eb0e68ace8131a1fc11348358 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=18a489a3fda74a0eb0e68ace8131a1fc11348358 ---------------------------------------------------- commit 6b997386 upstream. Otherwise the commit that will be aborted will be associated with the metadata objects that will be torn down. Must write needs_check flag to metadata with a reset block manager. Found through code-inspection (and compared against dm-thin.c). Cc: stable@vger.kernel.org Fixes: 028ae9f7 ("dm cache: add fail io mode and needs_check flag") Signed-off-by:Mike Snitzer <snitzer@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
zhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
Loading
Please sign in to comment