linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* double free of blocks occurred during online defrag
@ 2009-02-25  6:39 Kazuya Mio
  2009-02-25 10:44 ` Aneesh Kumar K.V
  0 siblings, 1 reply; 7+ messages in thread
From: Kazuya Mio @ 2009-02-25  6:39 UTC (permalink / raw)
  To: aneesh.kumar; +Cc: linux-ext4

Hi Aneesh,

When I remove the file that is running online defrag, the following error occurs
after closing the file descriptor:

Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8):
ext4_mb_release_inode_pa: free 2048, pa_free 1562
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802817(bit 0 in group 98)
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802818(bit 1 in group 98)
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802819(bit 2 in group 98)
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802820(bit 3 in group 98)
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802821(bit 4 in group 98)
Jan 22 17:06:52 G3-OPC-SVR2 kernel: EXT4-fs error (device hda8): mb_free_blocks:
double-free of inode 0's block 802822(bit 5 in group 98)

So, online defrag calls ext4_discard_preallocations() at the end of
ext4_defrag() to avoid double-free error.
However, above error hasn't occurred since applying your patch posted on Nov
6th, 2008 because this error is caused by the same reason of your report.
http://marc.info/?l=linux-ext4&m=122599787406193&w=4

What is the status of this patch?

Regards,
Kazuya Mio

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-06  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25  6:39 double free of blocks occurred during online defrag Kazuya Mio
2009-02-25 10:44 ` Aneesh Kumar K.V
2009-02-25 10:59   ` Aneesh Kumar K.V
2009-02-26  9:49     ` Aneesh Kumar K.V
2009-02-26 22:38   ` Mike Snitzer
2009-03-02  8:30   ` Kazuya Mio
2009-03-06  8:18   ` Kazuya Mio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).