[dm-devel] [RFC][PATCH] Simplify dm_get_device restriction combining

Christophe Saout christophe at saout.de
Tue Jan 20 14:34:01 UTC 2004


Am Di, den 20.01.2004 schrieb Mike Christie um 20:07:

> If you want to remove even more code duplication, could dm use 
> blk_queue_stack_limits? The only major difference seems to be that 
> combine_restrictions_low copies seg_boundary_mask and 
> blk_queue_stack_limits doesn't.

I've thought about that but the main problem is that the new
restrictions are written into the request queue when the table is
swapped, that means when the device is resumed wheres the restrictions
are collected while a new table is loaded.

To use blk_queue_stack_limits dm would have to associate a request queue
with a table and swap it around too. I don't know if this is possible.
dm doesn't use most of the fields in the request_queue struct.






More information about the dm-devel mailing list