]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block/xen-blkfront: Split blkif_queue_request in 2
authorJulien Grall <julien.grall@citrix.com>
Mon, 29 Jun 2015 16:35:24 +0000 (17:35 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:06 +0000 (02:01 +0100)
commitca843d60b77cb1e7e63667effc7a364e6ef992b6
tree930d9c5c6e5a35e0ff4d967d3370b80d98c8e9dc
parent91d952247bc09eb74fbdf0de7de273f55ef924c8
block/xen-blkfront: Split blkif_queue_request in 2

Currently, blkif_queue_request has 2 distinct execution path:
    - Send a discard request
    - Send a read/write request

The function is also allocating grants to use for generating the
request. Although, this is only used for read/write request.

Rather than having a function with 2 distinct execution path, separate
the function in 2. This will also remove one level of tabulation.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 33204663ef85d9ce79009b2246afe6a2fef8eb1b)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/block/xen-blkfront.c