commit | a167f663243662aa9153c01086580a11cde9ffdc | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Tue Oct 26 18:31:13 2010 +1100 |
committer | NeilBrown <neilb@suse.de> | Thu Oct 28 17:36:15 2010 +1100 |
tree | 886e64787421bbf17a1eab7853d67258b598f050 | |
parent | 2b193363ef68667ad717a6723165e0dccf99470f [diff] |
md: use separate bio pool for each md device. bio_clone and bio_alloc allocate from a common bio pool. If an md device is stacked with other devices that use this pool, or under something like swap which uses the pool, then the multiple calls on the pool can cause deadlocks. So allocate a local bio pool for each md array and use that rather than the common pool. This pool is used both for regular IO and metadata updates. Signed-off-by: NeilBrown <neilb@suse.de>