diff options
author | Alex Elder <elder@inktank.com> | 2012-07-19 16:09:27 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-31 03:15:45 +0200 |
commit | a66f8c97a31fd7b2cfd7b86d4789858dbfbedffb (patch) | |
tree | 15f8fe7eaa213fe8045e5be71e4a55d63bd35f23 /drivers/block | |
parent | rbd: kill rbd_image_header->snap_seq (diff) | |
download | linux-a66f8c97a31fd7b2cfd7b86d4789858dbfbedffb.tar.xz linux-a66f8c97a31fd7b2cfd7b86d4789858dbfbedffb.zip |
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: Guangliang Zhao <gzhao@suse.com>
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | 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 6df8c62c40f5..b9895feda5ee 100644 --- 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); |