Skip to content

Commit

Permalink
Merge branch 'stable/for-jens-3.13-take-two' of git://git.kernel.org/…
Browse files Browse the repository at this point in the history
…pub/scm/linux/kernel/git/xen/tip into for-linus
  • Loading branch information
Jens Axboe committed Nov 28, 2013
2 parents c170bbb + 2f089cb commit e345d76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static int blkif_queue_request(struct request *req)

if ((ring_req->operation == BLKIF_OP_INDIRECT) &&
(i % SEGS_PER_INDIRECT_FRAME == 0)) {
unsigned long pfn;
unsigned long uninitialized_var(pfn);

if (segments)
kunmap_atomic(segments);
Expand Down Expand Up @@ -2011,6 +2011,10 @@ static void blkif_release(struct gendisk *disk, fmode_t mode)

bdev = bdget_disk(disk, 0);

if (!bdev) {
WARN(1, "Block device %s yanked out from us!\n", disk->disk_name);
goto out_mutex;
}
if (bdev->bd_openers)
goto out;

Expand Down Expand Up @@ -2041,6 +2045,7 @@ static void blkif_release(struct gendisk *disk, fmode_t mode)

out:
bdput(bdev);
out_mutex:
mutex_unlock(&blkfront_mutex);
}

Expand Down

0 comments on commit e345d76

Please sign in to comment.