rbd: move snap_rwsem to the device, rename to header_rwsem
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 22 Nov 2011 01:11:12 +0000 (17:11 -0800)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:52 +0000 (10:47 -0500)
A new temporary header is allocated each time the header changes, but
only the changed properties are copied over. We don't need a new
semaphore for each header update.

This addresses http://tracker.newdream.net/issues/2174

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Alex Elder <elder@dreamhost.com>

No differences found