All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage
@ 2010-04-12 11:26 bugzilla-daemon
  2010-04-12 11:32 ` [Bug 15768] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-12 11:26 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768

           Summary: Incorrectly calculated free blocks result in ENOSPC
                    from writepage
           Product: File System
           Version: 2.5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: ext4
        AssignedTo: fs_ext4@kernel-bugs.osdl.org
        ReportedBy: dmonakhov@openvz.org
                CC: tytso@mit.edu
        Regression: No


Created an attachment (id=25965)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=25965)
testcase

No mount per-sb counters (freeblocks/freeinodes/dir and etc) are initialized 
before journal was replayed.
But in fact if journal wasn't empty statistics will be probably changed after
journal replay. This result in per-sb counter  inconsistency which result in
incorrect delalloc reservation. See testcase.
This is long standing bug at least from 2.6.12 where the linus's tree starts i
(was too lazy to dig in to old-git tree).
But it case of ext3 this result only in incorrect numbers from statfs()
The fix is simple, we just have to move counter initialisation after
journal_reply.
I've open this bug only as testcase storage.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
@ 2010-04-12 11:32 ` bugzilla-daemon
  2010-04-12 11:50 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-12 11:32 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768





--- Comment #1 from Dmitry Monakhov <dmonakhov@openvz.org>  2010-04-12 11:32:41 ---
dmesg after testcase check 

kjournald2 starting: pid 1310, dev sdb1:8, commit interval 5 seconds
EXT4-fs (sdb1): internal journal on sdb1:8
EXT4-fs (sdb1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sdb1): recovery complete
EXT4-fs (sdb1): mounted filesystem with ordered data mode
mpage_da_map_blocks block allocation failed for inode 14 at logical offset 4667
with max blocks 5192 with error -28
This should not happen.!! Data will be lost
Total free blocks count 0
Free/Dirty block details
free_blocks=7222
dirty_blocks=5209
Block reservation details
i_reserved_data_blocks=5192
i_reserved_meta_blocks=17

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
  2010-04-12 11:32 ` [Bug 15768] " bugzilla-daemon
@ 2010-04-12 11:50 ` bugzilla-daemon
  2010-04-12 18:30 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-12 11:50 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768


Dmitry Monakhov <dmonakhov@openvz.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmonakhov@openvz.org
     Kernel Version|                            |from 2.6.11 to 2.6.33-rc4




--- Comment #2 from Dmitry Monakhov <dmonakhov@openvz.org>  2010-04-12 11:49:51 ---
proposed patch http://patchwork.ozlabs.org/patch/49963/

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
  2010-04-12 11:32 ` [Bug 15768] " bugzilla-daemon
  2010-04-12 11:50 ` bugzilla-daemon
@ 2010-04-12 18:30 ` bugzilla-daemon
  2010-04-12 19:14 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-12 18:30 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768





--- Comment #3 from Dmitry Monakhov <dmonakhov@openvz.org>  2010-04-12 18:30:35 ---
(In reply to comment #2)
> proposed patch http://patchwork.ozlabs.org/patch/49963/
Opps, the patch attached is wrong in case of no_journal mode.
Will send new version soon.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
                   ` (2 preceding siblings ...)
  2010-04-12 18:30 ` bugzilla-daemon
@ 2010-04-12 19:14 ` bugzilla-daemon
  2010-04-16 21:44 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-12 19:14 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768





--- Comment #4 from Dmitry Monakhov <dmonakhov@openvz.org>  2010-04-12 19:14:30 ---
Updated version of the fix posted here.
http://patchwork.ozlabs.org/patch/49989/

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
                   ` (3 preceding siblings ...)
  2010-04-12 19:14 ` bugzilla-daemon
@ 2010-04-16 21:44 ` bugzilla-daemon
  2010-05-04 21:15 ` bugzilla-daemon
  2010-06-13 11:44 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-04-16 21:44 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768


Rafael J. Wysocki <rjw@sisk.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rjw@sisk.pl
             Blocks|                            |15310




-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
                   ` (4 preceding siblings ...)
  2010-04-16 21:44 ` bugzilla-daemon
@ 2010-05-04 21:15 ` bugzilla-daemon
  2010-06-13 11:44 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-05-04 21:15 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768


Rafael J. Wysocki <rjw@sisk.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |PATCH_ALREADY_AVAILABLE




--- Comment #5 from Rafael J. Wysocki <rjw@sisk.pl>  2010-05-04 21:15:42 ---
Patch : http://patchwork.ozlabs.org/patch/49989/
Handled-By : Dmitry Monakhov <dmonakhov@openvz.org>

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

* [Bug 15768] Incorrectly calculated free blocks result in ENOSPC from writepage
  2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
                   ` (5 preceding siblings ...)
  2010-05-04 21:15 ` bugzilla-daemon
@ 2010-06-13 11:44 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2010-06-13 11:44 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=15768


Rafael J. Wysocki <rjw@sisk.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
         Resolution|PATCH_ALREADY_AVAILABLE     |CODE_FIX




--- Comment #6 from Rafael J. Wysocki <rjw@sisk.pl>  2010-06-13 11:44:30 ---
Fixed by commit 84061e07c5fbbbf9dc8aef8fb750fc3a2dfc31f3 .

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

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

end of thread, other threads:[~2010-06-13 11:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 11:26 [Bug 15768] New: Incorrectly calculated free blocks result in ENOSPC from writepage bugzilla-daemon
2010-04-12 11:32 ` [Bug 15768] " bugzilla-daemon
2010-04-12 11:50 ` bugzilla-daemon
2010-04-12 18:30 ` bugzilla-daemon
2010-04-12 19:14 ` bugzilla-daemon
2010-04-16 21:44 ` bugzilla-daemon
2010-05-04 21:15 ` bugzilla-daemon
2010-06-13 11:44 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.