Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142890
b: refs/heads/master
c: df12ee9
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon committed Apr 8, 2009
1 parent 8491c3b commit 6f78712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 692d0eb9e02cf81fb387ff891f53840db2f3110a
refs/heads/master: df12ee996378a5917e9555169fe278ecca0612d4
17 changes: 9 additions & 8 deletions trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1437,18 +1437,19 @@ static void dm_wq_work(struct work_struct *work)

down_write(&md->io_lock);

next_bio:
spin_lock_irq(&md->deferred_lock);
c = bio_list_pop(&md->deferred);
spin_unlock_irq(&md->deferred_lock);
while (1) {
spin_lock_irq(&md->deferred_lock);
c = bio_list_pop(&md->deferred);
spin_unlock_irq(&md->deferred_lock);

if (!c) {
clear_bit(DMF_BLOCK_IO, &md->flags);
break;
}

if (c) {
__split_and_process_bio(md, c);
goto next_bio;
}

clear_bit(DMF_BLOCK_IO, &md->flags);

up_write(&md->io_lock);
}

Expand Down

0 comments on commit 6f78712

Please sign in to comment.