]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Change the dm_bio_prison interface so that instead of allocating memory
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:52 +0000 (10:04 +1100)
commite0a400feea3c611e746f3e95200395ae73a9d112
tree582391ebe0845d4da2e84fd1cf1fbde1be02ee8f
parent460edc63174414824551128c9d7c87abb227a774
Change the dm_bio_prison interface so that instead of allocating memory
internally, dm_bio_detain is supplied with a pre-allocated cell each
time it is called.

This enables a subsequent patch to move the allocation of the struct
dm_bio_prison_cell outside the thin target's mapping function so it can
no longer block there.

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