]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: fix potential race when freeing ext4_io_page structures
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 2010 18:45:33 +0000 (13:45 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 2010 18:45:33 +0000 (13:45 -0500)
commit83668e7141c7a0aa4035bde94344b81f9cf966ab
tree34d9fd52470b475d6e9d88ece8ca1ba80bf85a42
parentf7ad6d2e9201a6e1c9ee6530a291452eb695feb8
ext4: fix potential race when freeing ext4_io_page structures

Use an atomic_t and make sure we don't free the structure while we
might still be submitting I/O for that page.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/page-io.c