From 025b96853fe0bdc977d88b4242ca5e1f19d9bb66 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 1 Mar 2013 22:45:50 +0000 Subject: dm thin: remove cells from stack This patch takes advantage of the new bio-prison interface where the memory is now passed in rather than using a mempool in bio-prison. This allows the map function to avoid performing potentially-blocking allocations that could lead to deadlocks: We want to avoid the cell allocation that is done in bio_detain. (The potential for mempool deadlocks still remains in other functions that use bio_detain.) Signed-off-by: Joe Thornber Signed-off-by: Alasdair G Kergon --- drivers/md/dm-bio-prison.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers/md/dm-bio-prison.c') diff --git a/drivers/md/dm-bio-prison.c b/drivers/md/dm-bio-prison.c index ca5771d3ffd7..144067c95aba 100644 --- a/drivers/md/dm-bio-prison.c +++ b/drivers/md/dm-bio-prison.c @@ -14,13 +14,6 @@ /*----------------------------------------------------------------*/ -struct dm_bio_prison_cell { - struct hlist_node list; - struct dm_cell_key key; - struct bio *holder; - struct bio_list bios; -}; - struct dm_bio_prison { spinlock_t lock; mempool_t *cell_pool; -- cgit v1.2.3