Josef Bacik fe1f9e6659 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>
2018-05-16 12:54:12 -06:00
..
2018-05-11 15:08:00 -06:00
2018-05-09 08:43:57 -06:00
2018-05-16 12:54:12 -06:00
2018-05-11 15:08:03 -06:00
2017-02-20 12:16:15 +01:00
2018-04-16 09:38:40 +02:00
2017-08-18 08:45:29 -06:00
2018-04-05 14:27:02 -07:00