summaryrefslogtreecommitdiff
path: root/include/linux/genl_magic_struct.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-04-28 21:47:21 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:52:59 +0100
commit88104ca458dff8ed7db935936b91b9af4422c9cd (patch)
treeeb6844263caa72ddf6406998e9f45d497506019e /include/linux/genl_magic_struct.h
parenta7eb7bdf58b5dd98560ee6fa5caf2fcdd1779a47 (diff)
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 <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/genl_magic_struct.h')
0 files changed, 0 insertions, 0 deletions