aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-linear.c
diff options
context:
space:
mode:
authorGravatar Mike Snitzer <snitzer@redhat.com> 2009-06-22 10:12:32 +0100
committerGravatar Alasdair G Kergon <agk@redhat.com> 2009-06-22 10:12:32 +0100
commit1197764e403d97231eb6da2b1e16f511a7fd3101 (patch)
tree9c38793927501989c4c74cae0887309bd17484d8 /drivers/md/dm-linear.c
parentdm table: replace struct io_restrictions with struct queue_limits (diff)
downloadlinux-1197764e403d97231eb6da2b1e16f511a7fd3101.tar.gz
linux-1197764e403d97231eb6da2b1e16f511a7fd3101.tar.bz2
linux-1197764e403d97231eb6da2b1e16f511a7fd3101.zip
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 ae03bf639a5027d27270123f5f6e3ee6a412781d. 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>
Diffstat (limited to 'drivers/md/dm-linear.c')
0 files changed, 0 insertions, 0 deletions