rbd: initialize snap_rwsem in rbd_add()
authorAlex Elder <elder@dreamhost.com>
Thu, 12 Jan 2012 03:42:15 +0000 (19:42 -0800)
committerSage Weil <sage@newdream.net>
Thu, 12 Jan 2012 19:00:50 +0000 (11:00 -0800)
New rbd device structures get initialized in rbd_add().  Many of
the fields rely on being initially zero-filled.  However we lockdep
was noticing that the rw_semaphore embedded in the header field
was not getting properly initialized.  Fix that.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>

No differences found