diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index c116b6e0d85aa42f1b86dd54a21402809ab0eff3..1155bd823b6f98dfca957fe02002984d0fa37ef7 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1009,6 +1009,7 @@ static void cached_dev_detach_finish(struct work_struct *w) bch_write_bdev_super(dc, &cl); closure_sync(&cl); + calc_cached_dev_sectors(dc->disk.c); bcache_device_detach(&dc->disk); list_move(&dc->list, &uncached_devices);