From: Andreas Gruenbacher Date: Thu, 28 Apr 2011 19:47:21 +0000 (+0200) Subject: drbd: Allow to change data-integrity-alg on the fly X-Git-Tag: v3.8-rc1~78^2~18^2~241 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88104ca458dff8ed7db935936b91b9af4422c9cd;p=pandora-kernel.git drbd: Allow to change data-integrity-alg on the fly The main purpose of this is to allow to turn data integrity checking on and off on demand without causing interruptions. Implemented by allocating tconn->peer_integrity_tfm only when receiving a P_PROTOCOL message. l accesses to tconn->peer_integrity_tf happen in worker context, and no further synchronization is necessary. On the sender side, tconn->integrity_tfm is modified under tconn->data.mutex, and a P_PROTOCOL message is sent whenever. All accesses to tconn->integrity_tfm already happen under this mutex. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- Reading git-diff-tree failed