Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154274
b: refs/heads/master
c: cec47e3
h: refs/heads/master
v: v3
  • Loading branch information
Kiyoshi Ueda authored and Alasdair G Kergon committed Jun 22, 2009
1 parent e33d79b commit 0a19234
Show file tree
Hide file tree
Showing 5 changed files with 726 additions and 5 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: f5db4af466e2dca0fe822019812d586ca910b00c
refs/heads/master: cec47e3d4a861e1d942b3a580d0bbef2700d2bb2
14 changes: 14 additions & 0 deletions trunk/drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,20 @@ int dm_table_any_congested(struct dm_table *t, int bdi_bits)
return r;
}

int dm_table_any_busy_target(struct dm_table *t)
{
unsigned i;
struct dm_target *ti;

for (i = 0; i < t->num_targets; i++) {
ti = t->targets + i;
if (ti->type->busy && ti->type->busy(ti))
return 1;
}

return 0;
}

void dm_table_unplug_all(struct dm_table *t)
{
struct dm_dev_internal *dd;
Expand Down
Loading

0 comments on commit 0a19234

Please sign in to comment.