]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm thin metadata: don't issue prefetches if a transaction abort has failed
authorJoe Thornber <ejt@redhat.com>
Tue, 1 Mar 2016 10:58:44 +0000 (10:58 +0000)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:46:24 +0000 (15:46 -0700)
commit2ec24ffc700ac24eb4c1e405064af2ce15852294
tree703180af648d6c2f017ea4cea3f0b635a08a1e1a
parenteb2f2271cbb96f5b8cfed8431c99bf33cd5e581b
dm thin metadata: don't issue prefetches if a transaction abort has failed

Orabug: stable_rc4

[ Upstream commit 2eae9e4489b4cf83213fa3bd508b5afca3f01780 ]

If a transaction abort has failed then we can no longer use the metadata
device.  Typically this happens if the superblock is unreadable.

This fix addresses a crash seen during metadata device failure testing.

Fixes: 8a01a6af75 ("dm thin: prefetch missing metadata pages")
Cc: stable@vger.kernel.org # 3.19+
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 78243d0a1221f06af96a8952cd5ac71cd1fe5376)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/md/dm-thin-metadata.c