]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: revert "fix a crash when an origin has no snapshots"
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 25 May 2021 17:16:21 +0000 (13:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 May 2021 20:16:47 +0000 (16:16 -0400)
commita0fada00b232b57834e9ca803566fcc6d68c2574
treed23c77eb0d30a6419382061a3ccfb4491ae7ef1e
parenta774b2e0a7052cd8a40ca470d46479e029353a40
dm snapshot: revert "fix a crash when an origin has no snapshots"

Commit 1c9f098c28d1e37bb4b7e243eca2a874f9389f98 ("dm snapshot: fix a
crash when an origin has no snapshots") introduced a regression in
snapshot merging - causing the lvm2 test lvcreate-cache-snapshot.sh
got stuck in an infinite loop.

Even though commit 1c9f098c28d1e37bb4b7e243eca2a874f9389f98 was marked
for stable@ the stable team was notified to _not_ backport it.

Fixes: 1c9f098c28d1 ("dm snapshot: fix a crash when an origin has no snapshots")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-snap.c