Skip to content

Commit

Permalink
rbd: drop extra header_rwsem init
Browse files Browse the repository at this point in the history
In commit c666601 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]>
  • Loading branch information
Alex Elder authored and Sage Weil committed Jul 31, 2012

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9e15dc7 commit a66f8c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit a66f8c9

Please sign in to comment.