]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blkback: Fix the inhibition to map pages when discarding sector ranges.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Oct 2011 04:47:49 +0000 (00:47 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 20:31:31 +0000 (16:31 -0400)
commit296c59a5a547decd2d8bbe924386973711a28e9a
tree94c04f84359fc9e3869361ad6d5f767b9c037437
parent200208e4c00a818dc1420b8f082b57c5f9105eb6
xen/blkback: Fix the inhibition to map pages when discarding sector ranges.

The 'operation' parameters are the ones provided to the bio layer while
the req->operation are the ones passed in between the backend and
frontend. We used the wrong 'operation' value to squash the
call to map pages when processing the discard operation resulting
in an hypercall that did nothing. Lets guard against going in the
mapping function by checking for the proper operation type.

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