diff options
-rw-r--r-- | fs/block_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 99d6af811747..b3171fb0dc9a 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -681,8 +681,8 @@ retry: | |||
681 | if (!bd_may_claim(bdev, whole, holder)) | 681 | if (!bd_may_claim(bdev, whole, holder)) |
682 | return -EBUSY; | 682 | return -EBUSY; |
683 | 683 | ||
684 | /* if someone else is claiming, wait for it to finish */ | 684 | /* if claiming is already in progress, wait for it to finish */ |
685 | if (whole->bd_claiming && whole->bd_claiming != holder) { | 685 | if (whole->bd_claiming) { |
686 | wait_queue_head_t *wq = bit_waitqueue(&whole->bd_claiming, 0); | 686 | wait_queue_head_t *wq = bit_waitqueue(&whole->bd_claiming, 0); |
687 | DEFINE_WAIT(wait); | 687 | DEFINE_WAIT(wait); |
688 | 688 | ||