Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a66f8c97 authored by Alex Elder's avatar Alex Elder Committed by Sage Weil
Browse files

rbd: drop extra header_rwsem init



In commit c666601a there was inadvertently added an extra
initialization of rbd_dev->header_rwsem.  This gets rid of the
duplicate.

Reported-by: default avatarGuangliang Zhao <gzhao@suse.com>
Signed-off-by: default avatarAlex Elder <elder@inktank.com>
Reviewed-by: default avatarJosh Durgin <josh.durgin@inktank.com>
parent 9e15dc73
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2458,8 +2458,6 @@ static ssize_t rbd_add(struct bus_type *bus,
	INIT_LIST_HEAD(&rbd_dev->snaps);
	INIT_LIST_HEAD(&rbd_dev->snaps);
	init_rwsem(&rbd_dev->header_rwsem);
	init_rwsem(&rbd_dev->header_rwsem);


	init_rwsem(&rbd_dev->header_rwsem);

	/* generate unique id: find highest unique id, add one */
	/* generate unique id: find highest unique id, add one */
	rbd_id_get(rbd_dev);
	rbd_id_get(rbd_dev);