Message ID | 1342707908-7747-1-git-send-email-gzhao@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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);
The header_rwsem of rbd_dev initializes twice in function rbd_add. Signed-off-by: Guangliang Zhao <gzhao@suse.com> --- drivers/block/rbd.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)