Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

-1
-1
fs/block_dev.c
··· 817 817 struct block_device *whole, void *holder) 818 818 { 819 819 spin_lock(&bdev_lock); 820 - BUG_ON(whole->bd_claiming != holder); 821 820 BUG_ON(!bd_may_claim(bdev, whole, holder)); 822 821 __bd_claim(bdev, whole, holder); 823 822 __bd_abort_claiming(whole, holder); /* not actually an abort */