xen/blkback: Squash the checking for operation into dispatch_rw_block_io
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 5 May 2011 17:37:23 +0000 (13:37 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 5 May 2011 17:43:25 +0000 (13:43 -0400)
commitfc53bf757ede292312eee10d64f4e691c8c8cebf
tree9129e9a47a399842351a800215e30b1163a6d960
parent24f567f952aa308c3352f3340b9d296fc72bd066
xen/blkback: Squash the checking for operation into dispatch_rw_block_io

We do a check for the operations right before calling dispatch_rw_block_io.
And then we do the same check in dispatch_rw_block_io. This patch
squashes those checks into the 'dispatch_rw_block_io' function.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c