]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:34:58 +0000 (15:34 -0400)
commitbc661f5d238569cae7ca9da01e12451b7785fb01
treea8a49679d74ca6c609dd0971c2046de97466b687
parent075c4ced91c551cdc2e9bb99b1697c3d54be106e
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/super.c
fs/sync.c
mm/backing-dev.c