projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ae2e4
)
xen/blkfront: don't put bdev right after getting it
author
Andrew Jones
<drjones@redhat.com>
Thu, 16 Feb 2012 12:16:25 +0000
(13:16 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 20 Mar 2012 11:52:41 +0000
(12:52 +0100)
We should hang onto bdev until we're done with it.
Signed-off-by: Andrew Jones <drjones@redhat.com>
[v1: Fixed up git commit description]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/xen-blkfront.c
b/drivers/block/xen-blkfront.c
index 619868d91ca8729037515b06480f7a7a8c011821..537cb722a211cff96da46ac14cf5fdd1735ff857 100644
(file)
--- a/
drivers/block/xen-blkfront.c
+++ b/
drivers/block/xen-blkfront.c
@@
-1409,7
+1409,6
@@
static int blkif_release(struct gendisk *disk, fmode_t mode)
mutex_lock(&blkfront_mutex);
bdev = bdget_disk(disk, 0);
- bdput(bdev);
if (bdev->bd_openers)
goto out;
@@
-1440,6
+1439,7
@@
static int blkif_release(struct gendisk *disk, fmode_t mode)
}
out:
+ bdput(bdev);
mutex_unlock(&blkfront_mutex);
return 0;
}