]> 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>
Mon, 10 Oct 2011 16:48:39 +0000 (12:48 -0400)
commitc67fc3af5f42349251f50e7cf9426bcb74fa476a
treebaa7179cc683a92bb06817a11079448fcdca7d77
parent58d862f3ca0e3b48a75e6c97d89e5bb65e8d6dfe
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 mapping the pages unnecessarily.

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