From: Joe Thornber Date: Tue, 6 May 2014 15:28:14 +0000 (+0100) Subject: dm thin: allow metadata commit if pool is in PM_OUT_OF_DATA_SPACE mode X-Git-Tag: omap-for-v3.16/fixes-against-rc1~175^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d07e8a5f5bc7b90f755d9b427ea930024f4c986;p=pandora-kernel.git dm thin: allow metadata commit if pool is in PM_OUT_OF_DATA_SPACE mode Commit 3e1a0699 ("dm thin: fix out of data space handling") introduced a regression in the metadata commit() method by returning an error if the pool is in PM_OUT_OF_DATA_SPACE mode. This oversight caused a thin device to return errors even if the default queue_if_no_space ENOSPC handling mode is used. Fix commit() to only fail if pool is in PM_READ_ONLY or PM_FAIL mode. Reported-by: qindehua@163.com Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org # 3.14+ --- Reading git-diff-tree failed