Commit 3e6c0505 authored by Jens Axboe's avatar Jens Axboe

block: remove duplicate BUG_ON() in bd_finish_claiming()

We do the same BUG_ON() just a line later when calling into
__bd_abort_claiming().
Reported-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent b0018361
...@@ -817,7 +817,6 @@ static void bd_finish_claiming(struct block_device *bdev, ...@@ -817,7 +817,6 @@ static void bd_finish_claiming(struct block_device *bdev,
struct block_device *whole, void *holder) struct block_device *whole, void *holder)
{ {
spin_lock(&bdev_lock); spin_lock(&bdev_lock);
BUG_ON(whole->bd_claiming != holder);
BUG_ON(!bd_may_claim(bdev, whole, holder)); BUG_ON(!bd_may_claim(bdev, whole, holder));
__bd_claim(bdev, whole, holder); __bd_claim(bdev, whole, holder);
__bd_abort_claiming(whole, holder); /* not actually an abort */ __bd_abort_claiming(whole, holder); /* not actually an abort */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment