Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299194
b: refs/heads/master
c: 34ae2e4
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Jens Axboe committed Mar 20, 2012
1 parent 0707fae commit 160d200
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: b2167ba6dd89d55ced26a867fad8f0fe388fd595
refs/heads/master: 34ae2e47d97216d8c66a1c5dff5b530c29b746b8
7 changes: 3 additions & 4 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>
#include <linux/bitmap.h>

#include <xen/xen.h>
#include <xen/xenbus.h>
Expand Down Expand Up @@ -177,8 +178,7 @@ static int xlbd_reserve_minors(unsigned int minor, unsigned int nr)

spin_lock(&minor_lock);
if (find_next_bit(minors, end, minor) >= end) {
for (; minor < end; ++minor)
__set_bit(minor, minors);
bitmap_set(minors, minor, nr);
rc = 0;
} else
rc = -EBUSY;
Expand All @@ -193,8 +193,7 @@ static void xlbd_release_minors(unsigned int minor, unsigned int nr)

BUG_ON(end > nr_minors);
spin_lock(&minor_lock);
for (; minor < end; ++minor)
__clear_bit(minor, minors);
bitmap_clear(minors, minor, nr);
spin_unlock(&minor_lock);
}

Expand Down

0 comments on commit 160d200

Please sign in to comment.