diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2008-07-21 12:00:35 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-07-21 12:00:35 +0100 |
commit | 92e868122edf08b9fc06b112e7e0c80ab94c1f93 (patch) | |
tree | 9cd2e5e2f15adcaf1b8d3f8f55d5a676ad40bfd6 /drivers/md/dm-snap.h | |
parent | a8d41b59f3f5a7ac19452ef442a7fc1b5fa17366 (diff) |
dm snapshot: use per device mempools
Change snapshot per-module mempool to per-device mempool.
Per-module mempools could cause a deadlock if multiple
snapshot devices are stacked above each other.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap.h')
-rw-r--r-- | drivers/md/dm-snap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index 70dc961f40d8..292c15609ae3 100644 --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h @@ -161,6 +161,8 @@ struct dm_snapshot { /* The last percentage we notified */ int last_percent; + mempool_t *pending_pool; + struct exception_table pending; struct exception_table complete; |