ext4: fix potential race when freeing ext4_io_page structures
commit83668e7141c7a0aa4035bde94344b81f9cf966ab
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 2010 18:45:33 +0000 (8 13:45 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Nov 2010 18:45:33 +0000 (8 13:45 -0500)
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