Re: [PATCH] dm: Use bioset's front_pad for dm_target_io

From: Tejun Heo
Date: Tue Sep 04 2012 - 17:20:12 EST


Hello, Kent.

On Tue, Sep 04, 2012 at 12:51:56PM -0700, Kent Overstreet wrote:
> I wrote a patch for dm_target_io last night. I think I know an easy way
> to go about converting the rest but it'll probably have to wait until
> I'm further along with my immutable bvec stuff.
>
> Completely untested patch below:

Yeap, this looks great to me. In the end, I think it's better to
require stacking drivers to not use separate mempools other than
bioset. Timer or not, using multiple alloc pools is brittle. Any
path which ends up allocating in different orders for whatever reason
can lead to subtle deadlock scenarios which can be very difficult to
track down and, at least currently, there's no way to automatically
detect them. Besides, w/ front-pad, it really shouldn't be necessary.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/