diff options
Diffstat (limited to 'block/partitions/core.c')
-rw-r--r-- | block/partitions/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index c085bf85509b..873999e2e2f2 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -610,7 +610,7 @@ int blk_drop_partitions(struct block_device *bdev) if (!disk_part_scan_enabled(bdev->bd_disk)) return 0; - if (bdev->bd_part_count || bdev->bd_openers > 1) + if (bdev->bd_part_count) return -EBUSY; sync_blockdev(bdev); |