|
@@ -681,8 +681,8 @@ retry:
|
|
|
if (!bd_may_claim(bdev, whole, holder))
|
|
|
return -EBUSY;
|
|
|
|
|
|
- /* if someone else is claiming, wait for it to finish */
|
|
|
- if (whole->bd_claiming && whole->bd_claiming != holder) {
|
|
|
+ /* if claiming is already in progress, wait for it to finish */
|
|
|
+ if (whole->bd_claiming) {
|
|
|
wait_queue_head_t *wq = bit_waitqueue(&whole->bd_claiming, 0);
|
|
|
DEFINE_WAIT(wait);
|
|
|
|