projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e15dc7
)
rbd: drop extra header_rwsem init
author
Alex Elder
<
[email protected]
>
Thu, 19 Jul 2012 14:09:27 +0000
(09:09 -0500)
committer
Sage Weil
<
[email protected]
>
Tue, 31 Jul 2012 01:15:45 +0000
(18:15 -0700)
In commit
c666601a
there was inadvertently added an extra
initialization of rbd_dev->header_rwsem. This gets rid of the
duplicate.
Reported-by: Guangliang Zhao <
[email protected]
>
Signed-off-by: Alex Elder <
[email protected]
>
Reviewed-by: Josh Durgin <
[email protected]
>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 6df8c62c40f5579d28186072e488f75371ad5b3e..b9895feda5ee1530589bc7f3483c3917f751770d 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-2458,8
+2458,6
@@
static ssize_t rbd_add(struct bus_type *bus,
INIT_LIST_HEAD(&rbd_dev->snaps);
init_rwsem(&rbd_dev->header_rwsem);
- init_rwsem(&rbd_dev->header_rwsem);
-
/* generate unique id: find highest unique id, add one */
rbd_id_get(rbd_dev);