- r = dm_pool_get_data_dev_size(tc->pool->pmd, &blocks);
- if (r)
- return r;
+ /*
+ * We can't call dm_pool_get_data_dev_size() since that blocks. So
+ * we follow a more convoluted path through to the pool's target.
+ */
+ if (!tc->pool->ti)
+ return 0; /* nothing is bound */