aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/xen-blkback/blkback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index bf4b9d282c04..6620b73d0490 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -887,6 +887,8 @@ static int dispatch_discard_io(struct xen_blkif *blkif,
887 unsigned long secure; 887 unsigned long secure;
888 struct phys_req preq; 888 struct phys_req preq;
889 889
890 xen_blkif_get(blkif);
891
890 preq.sector_number = req->u.discard.sector_number; 892 preq.sector_number = req->u.discard.sector_number;
891 preq.nr_sects = req->u.discard.nr_sectors; 893 preq.nr_sects = req->u.discard.nr_sectors;
892 894
@@ -899,7 +901,6 @@ static int dispatch_discard_io(struct xen_blkif *blkif,
899 } 901 }
900 blkif->st_ds_req++; 902 blkif->st_ds_req++;
901 903
902 xen_blkif_get(blkif);
903 secure = (blkif->vbd.discard_secure && 904 secure = (blkif->vbd.discard_secure &&
904 (req->u.discard.flag & BLKIF_DISCARD_SECURE)) ? 905 (req->u.discard.flag & BLKIF_DISCARD_SECURE)) ?
905 BLKDEV_DISCARD_SECURE : 0; 906 BLKDEV_DISCARD_SECURE : 0;