diff options
author | Josef Bacik <jbacik@fb.com> | 2018-05-16 20:51:21 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-16 20:54:12 +0200 |
commit | fe1f9e6659ca6124f500a0f829202c7c902fab0c (patch) | |
tree | 4b7bfa4504ac3f2d352525cfbc688ebd2e255d08 /init | |
parent | nbd: clear_sock on netlink disconnect (diff) | |
download | linux-fe1f9e6659ca6124f500a0f829202c7c902fab0c.tar.xz linux-fe1f9e6659ca6124f500a0f829202c7c902fab0c.zip |
nbd: fix how we set bd_invalidated
bd_invalidated is kind of a pain wrt partitions as it really only
triggers the partition rescan if it is set after bd_ops->open() runs, so
setting it when we reset the device isn't useful. We also sporadically
would still have partitions left over in some disconnect cases, so fix
this by always setting bd_invalidated on open if there's no
configuration or if we've had a disconnect action happen, that way the
partition table gets invalidated and rescanned properly.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions