aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorRoger Pau Monne <[email protected]>2013-08-12 12:53:43 +0200
committerJens Axboe <[email protected]>2013-11-08 09:10:27 -0700
commitc47206e25f28232ff979994c32758c82841d81cd (patch)
tree5b3a5b0830778f0bffaa97eee715f7a99ac3f01b /lib/mpi/mpi-internal.h
parentfbe363c476afe8ec992d3baf682670a4bd1b6ce6 (diff)
xen-blkfront: improve aproximation of required grants per request
Improve the calculation of required grants to process a request by using nr_phys_segments instead of always assuming a request is going to use all posible segments. nr_phys_segments contains the number of scatter-gather DMA addr+len pairs, which is basically what we put at every granted page. for_each_sg iterates over the DMA addr+len pairs and uses a grant page for each of them. Signed-off-by: Roger Pau MonnĂ© <[email protected]> Reviewed-by: David Vrabel <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: David Vrabel <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions