]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: retry failed direct IO allocations
authorEric Sandeen <sandeen@redhat.com>
Sat, 3 Oct 2009 01:20:55 +0000 (21:20 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:14 +0000 (08:07 -0800)
commit620c66ab00f5b06de7119fbe0cc7dba3cc9aca7d
treed55c301a6e0d7dac7620ad602849b0f41284314a
parent2489f42e40972d65e50a0b842297f90ce02e6cb0
ext4: retry failed direct IO allocations

(cherry picked from commit fbbf69456619de5d251cb9f1df609069178c62d5)

On a 256M filesystem, doing this in a loop:

        xfs_io -F -f -d -c 'pwrite 0 64m' test
        rm -f test

eventually leads to ENOSPC.  (the xfs_io command does a
64m direct IO write to the file "test")

As with other block allocation callers, it looks like we need to
potentially retry the allocations on the initial ENOSPC.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c