]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away
authorJens Axboe <jaxboe@fusionio.com>
Thu, 17 Mar 2011 10:13:12 +0000 (11:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:31 +0000 (12:00 -0700)
commit0a490308676cbc30594f067fec60d1bb00cd3252
tree5c66203fb2881a9c3fbdf9f092b70d7eb92efa48
parentb38678ba236c9af5404c820e2052ba44656a6d4a
fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away

commit 95f28604a65b1c40b6c6cd95e58439cd7ded3add upstream.

We don't have proper reference counting for this yet, so we run into
cases where the device is pulled and we OOPS on flushing the fs data.
This happens even though the dirty inodes have already been
migrated to the default_backing_dev_info.

Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Tested-by: Torsten Hilbrich <torsten.hilbrich@secunet.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/super.c
fs/sync.c
mm/backing-dev.c