Bug 7040
Summary: | Oops when removing full snapshot | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Damian Pietras (daper) |
Component: | LVM2/DM | Assignee: | Alasdair G Kergon (agk) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | gmazyland |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.17.7 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | dmesg with oops when removing a full snapshot |
Description
Damian Pietras
2006-08-22 04:24:46 UTC
Created attachment 8848 [details]
dmesg with oops when removing a full snapshot
I found out that reversing this patch: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=76df1c651b66bdf07d60b3d60789feb5f58d73e3 fixes the problem: I can remove the snapshot without Oops and everything works fine. Possible patch: http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/dm-snapshot-fix-freeing-pending-exception.patch (to apply may require earlier snapshot patches listed in the series file) I've applied the patch to my 2.6.17.7 (I had to do it by hand in some places) and it resolves the problem. Thanks. Would you try the following patch to see if it's sufficient? Alasdair Index: linux-2.6.17/drivers/md/dm-snap.c =================================================================== --- linux-2.6.17.orig/drivers/md/dm-snap.c 2006-09-14 23:05:18.000000000 +0100 +++ linux-2.6.17/drivers/md/dm-snap.c 2006-09-14 23:15:29.000000000 +0100 @@ -691,6 +691,7 @@ static void pending_complete(struct pend free_exception(e); + remove_exception(&pe->e); error_snapshot_bios(pe); goto out; } This simple patch also works. OK. The fix is already in the queue for 2.6.19, but let's get that one line patch queued for -stable. |