Commit 0a490308 authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away



commit 95f28604 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: default avatarTorsten Hilbrich <torsten.hilbrich@secunet.com>
Tested-by: default avatarTorsten Hilbrich <torsten.hilbrich@secunet.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b38678ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment