The header_rwsem of rbd_dev initializes twice in function rbd_add. Signed-off-by: Guangliang Zhao <gzhao@xxxxxxxx> --- drivers/block/rbd.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 013c7a5..50117dd 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2381,8 +2381,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); -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html