Skip to content

Commit

Permalink
block: remove duplicate BUG_ON() in bd_finish_claiming()
Browse files Browse the repository at this point in the history
We do the same BUG_ON() just a line later when calling into
__bd_abort_claiming().

Reported-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Jun 10, 2010
1 parent b001836 commit 3e6c050
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,6 @@ static void bd_finish_claiming(struct block_device *bdev,
struct block_device *whole, void *holder)
{
spin_lock(&bdev_lock);
BUG_ON(whole->bd_claiming != holder);
BUG_ON(!bd_may_claim(bdev, whole, holder));
__bd_claim(bdev, whole, holder);
__bd_abort_claiming(whole, holder); /* not actually an abort */
Expand Down

0 comments on commit 3e6c050

Please sign in to comment.