xen/blkback: Move the check for misaligned I/O higher.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 15 Apr 2011 15:38:29 +0000 (11:38 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 15 Apr 2011 15:38:29 +0000 (11:38 -0400)
commit976222e05ea5a9959ccf880d7a24efbf79b3c6cf
treefce26272d4f517d31a9c4fd41f2c7b43441ce259
parent1a95fe6e42cefc52c62c471ad87d7fe8643231df
xen/blkback: Move the check for misaligned I/O higher.

We move it up higher to be in same loop that actually computes
the sector number.

This way, all of the code that deals with verifying that the
request is correct is all done before we do any of the
page mapping, I/O submission, etc.

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