Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230690
b: refs/heads/master
c: 99d03c1
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown authored and Alasdair G Kergon committed Jan 13, 2011
1 parent c55fc10 commit bb5f1d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d357b0787bb3c91835d5e658c3bda178f9ca419
refs/heads/master: 99d03c141b40914b67d63c9d23b8da4386422ed7
5 changes: 5 additions & 0 deletions trunk/drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,7 @@ void dm_table_unplug_all(struct dm_table *t)
{
struct dm_dev_internal *dd;
struct list_head *devices = dm_table_get_devices(t);
struct dm_target_callbacks *cb;

list_for_each_entry(dd, devices, list) {
struct request_queue *q = bdev_get_queue(dd->dm_dev.bdev);
Expand All @@ -1290,6 +1291,10 @@ void dm_table_unplug_all(struct dm_table *t)
dm_device_name(t->md),
bdevname(dd->dm_dev.bdev, b));
}

list_for_each_entry(cb, &t->target_callbacks, list)
if (cb->unplug_fn)
cb->unplug_fn(cb);
}

struct mapped_device *dm_table_get_md(struct dm_table *t)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/device-mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ struct dm_target {
struct dm_target_callbacks {
struct list_head list;
int (*congested_fn) (struct dm_target_callbacks *, int);
void (*unplug_fn)(struct dm_target_callbacks *);
};

int dm_register_target(struct target_type *t);
Expand Down

0 comments on commit bb5f1d2

Please sign in to comment.