]> git.baikalelectronics.ru Git - kernel.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)
commit53f1c7c287ccb845b5efb8ee7191c22c91cdd016
tree34d9fd52470b475d6e9d88ece8ca1ba80bf85a42
parent1476d65813a81c2c88a569eb8c1333e69aa38dee
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