From: Alex Elder Date: Thu, 12 Jan 2012 03:42:15 +0000 (-0800) Subject: rbd: initialize snap_rwsem in rbd_add() X-Git-Tag: v3.3-rc1~79^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e805a1d857799352e51e8697c0b1a30aec16913;p=pandora-kernel.git rbd: initialize snap_rwsem in rbd_add() 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 Signed-off-by: Sage Weil --- Reading git-diff-tree failed