mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 23:36:44 +07:00
xen/blkback: Check for proper operation.
The patch titled: "xen/blkback: Fix the inhibition to map pages when discarding sector ranges." had the right idea except that it used the wrong comparison operator. It had == instead of !=. This fixes the bug where all (except discard) operations would have been ignored. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
parent
64391b2536
commit
dda1852802
@ -707,7 +707,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
|
||||
* the hypercall to unmap the grants - that is all done in
|
||||
* xen_blkbk_unmap.
|
||||
*/
|
||||
if (operation == REQ_DISCARD && xen_blkbk_map(req, pending_req, seg))
|
||||
if (operation != REQ_DISCARD && xen_blkbk_map(req, pending_req, seg))
|
||||
goto fail_flush;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user