aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/xen-blkfront.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 7fa2a1db51e6..3258ae67ac7a 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1021,14 +1021,14 @@ static void blkfront_closing(struct blkfront_info *info)
1021 /* Flush gnttab callback work. Must be done with no locks held. */ 1021 /* Flush gnttab callback work. Must be done with no locks held. */
1022 flush_scheduled_work(); 1022 flush_scheduled_work();
1023 1023
1024 blk_cleanup_queue(info->rq);
1025 info->rq = NULL;
1026
1027 minor = info->gd->first_minor; 1024 minor = info->gd->first_minor;
1028 nr_minors = info->gd->minors; 1025 nr_minors = info->gd->minors;
1029 del_gendisk(info->gd); 1026 del_gendisk(info->gd);
1030 xlbd_release_minors(minor, nr_minors); 1027 xlbd_release_minors(minor, nr_minors);
1031 1028
1029 blk_cleanup_queue(info->rq);
1030 info->rq = NULL;
1031
1032 out: 1032 out:
1033 if (info->xbdev) 1033 if (info->xbdev)
1034 xenbus_frontend_closed(info->xbdev); 1034 xenbus_frontend_closed(info->xbdev);