Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373494
b: refs/heads/master
c: a0cab92
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed May 2, 2013
1 parent 0a7209c commit b60a4d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f40eb349e032bee2b6f06e9b6f1dbfae561bd30a
refs/heads/master: a0cab924324fac8d6414009bc25ce31eeece038e
8 changes: 5 additions & 3 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2844,10 +2844,12 @@ static void rbd_free_disk(struct rbd_device *rbd_dev)
if (!disk)
return;

if (disk->flags & GENHD_FL_UP)
rbd_dev->disk = NULL;
if (disk->flags & GENHD_FL_UP) {
del_gendisk(disk);
if (disk->queue)
blk_cleanup_queue(disk->queue);
if (disk->queue)
blk_cleanup_queue(disk->queue);
}
put_disk(disk);
}

Expand Down

0 comments on commit b60a4d6

Please sign in to comment.