Ratna Manoj Bolla abbbdf1249 nbd: replace kill_bdev() with __invalidate_device()
When a filesystem is mounted on a nbd device and on a disconnect, because
of kill_bdev(), and resetting bdev size to zero, buffer_head mappings are
getting destroyed under mounted filesystem.

After a bdev size reset(i.e bdev->bd_inode->i_size = 0) on a disconnect,
followed by a sys_umount(),
        generic_shutdown_super()->...
        ->__sync_blockdev()->...
        -blkdev_writepages()->...
        ->do_invalidatepage()->...
        -discard_buffer()   is discarding superblock buffer_head assumed
to be in mapped state by ext4_commit_super().

[mlin: ported to 4.11-rc2]
Signed-off-by: Ratna Manoj Bolla <manoj.br@gmail.com
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-03-24 15:42:47 -06:00
..
2016-06-27 12:26:08 -07:00
2017-02-22 11:54:49 -07:00
2017-02-23 17:10:32 -05:00
2017-02-21 11:51:42 -08:00
2015-09-23 11:01:16 -06:00
2016-03-15 15:59:47 -07:00
2016-06-27 12:26:08 -07:00
2017-02-20 12:16:15 +01:00
2017-03-07 14:30:38 +01:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00