xen-blkback: expand map/unmap functions
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Apr 2013 18:19:00 +0000 (20:19 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 18 Apr 2013 13:29:25 +0000 (09:29 -0400)
commit31552ee32df89f97a61766cee51b8dabb1ae3f4f
tree9cfc1218886ecc35180d3327a9b9a2fa3e385cf4
parentbf0720c48c7cefd127ed2329e6d0e40b39fa4d0e
xen-blkback: expand map/unmap functions

Preparatory change for implementing indirect descriptors. Change
xen_blkbk_{map/unmap} in order to be able to map/unmap a random amount
of grants (previously it was limited to
BLKIF_MAX_SEGMENTS_PER_REQUEST). Also, remove the usage of pending_req
in the map/unmap functions, so we can map/unmap grants without needing
to pass a pending_req.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xen.org
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c