xen, blkfront: factor out flush-related checks from do_blkif_request()
authorArianna Avanzini <avanzini.arianna@gmail.com>
Fri, 22 Aug 2014 11:20:02 +0000 (13:20 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 1 Oct 2014 20:32:39 +0000 (16:32 -0400)
commit0f1ca65ee50df042051e8fa3a14f73b0c71d45b9
tree65f3193a8a9c63a1af56d48d32d723634c9d9707
parent61cecca865280bef4f8a9748d0a9afa5df351ac2
xen, blkfront: factor out flush-related checks from do_blkif_request()

This commit factors out some checks related to the request insertion
path, which can be done in an function instead of by itself.

Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c