]> git.baikalelectronics.ru Git - kernel.git/commit
dm table: establish queue limits by copying table limits
authorMike Snitzer <snitzer@redhat.com>
Mon, 22 Jun 2009 09:12:32 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:32 +0000 (10:12 +0100)
commit772a0fd1c6437d66959d49af9fbb441f7d439a2a
tree9c38793927501989c4c74cae0887309bd17484d8
parentd2888cddc7ee52b7b01ef7e73870659f6b869244
dm table: establish queue limits by copying table limits

Copy the table's queue_limits to the DM device's request_queue.  This
properly initializes the queue's topology limits and also avoids having
to track the evolution of 'struct queue_limits' in
dm_table_set_restrictions()

Also fixes a bug that was introduced in dm_table_set_restrictions() via
commit 6d85b00cd6d2a0c6949152f0c6ca6b4116875d1a.  In addition to
establishing 'bounce_pfn' in the queue's limits blk_queue_bounce_limit()
also performs an allocation to setup the ISA DMA pool.  This allocation
resulted in "sleeping function called from invalid context" when called
from dm_table_set_restrictions().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c