Skip to content

Commit

Permalink
xen/blkback: Get the 'requeust_queue' properly.
Browse files Browse the repository at this point in the history
After the commit 0faa8cc
("    xen/blkback: remove per-queue plugging") we forgot
to retrieve the 'struct request_queue' from the block device.

This puts the functionality back in and fixes a NULL pointer
bug.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
Konrad Rzeszutek Wilk committed Apr 18, 2011
1 parent e935049 commit 6fd17b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/xen/blkback/blkback.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ static void dispatch_rw_block_io(struct blkif_st *blkif,
goto fail_response;
}
}
q = bdev_get_queue(preq.bdev);
if (!q)
goto fail_response;
/* If we have failed at this point, we need to undo the M2P override,
* set gnttab_set_unmap_op on all of the grant references and perform
* the hypercall to unmap the grants - that is all done in
Expand Down

0 comments on commit 6fd17b5

Please sign in to comment.