ext4: add ext4-specific kludge to avoid an oops after the disk disappears
authorTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:28:51 +0000 (18:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:28:51 +0000 (18:28 -0400)
commit7c2e70879fc0949b4220ee61b7c4553f6976a94d
tree5eea688d4ca50ec27e9cf59144f257e1683cfeb7
parent02fac1297eb3f471a27368271aadd285548297b0
ext4: add ext4-specific kludge to avoid an oops after the disk disappears

The del_gendisk() function uninitializes the disk-specific data
structures, including the bdi structure, without telling anyone
else.  Once this happens, any attempt to call mark_buffer_dirty()
(for example, by ext4_commit_super), will cause a kernel OOPS.

Fix this for now until we can fix things in an architecturally correct
way.

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