]> git.karo-electronics.de Git - karo-tx-linux.git/commit
This patch takes advantage of the new bio-prison interface where the
authorJoe Thornber <ejt@redhat.com>
Sun, 17 Feb 2013 23:03:36 +0000 (10:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 17 Feb 2013 23:04:53 +0000 (10:04 +1100)
commit3ddd741301f1fecb58b34baf32db1d44a507e047
tree9f972a59dba322e60665f4c4ccf1070c66150a86
parente0a400feea3c611e746f3e95200395ae73a9d112
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 <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-bio-prison.c
drivers/md/dm-bio-prison.h
drivers/md/dm-thin.c