]> git.karo-electronics.de Git - karo-tx-linux.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, 12 Oct 2011 16:29:24 +0000 (12:29 -0400)
commit74fbe1af80e1f48dcb7247bc6e5dc30d5dad6b16
tree031a8cc2b42d264e1cf6b9425d42a954e5193cee
parent5c505b0a0da296848fd43ed5a29cc32b3f578dd2
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