From: Konrad Rzeszutek Wilk Date: Mon, 10 Oct 2011 04:47:49 +0000 (-0400) Subject: xen/blkback: Fix the inhibition to map pages when discarding sector ranges. X-Git-Tag: v3.2-rc1~48^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64391b2536ca92f9c589b2bfeaca3954896fe057;p=pandora-kernel.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed