drbd: protect updates to integrits_tfm by tconn->data->mutex
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 16 May 2011 10:57:15 +0000 (12:57 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:55:52 +0000 (16:55 +0100)
commit46e1ce4177aac86b8e39bc7bb5763e9d040ae5cb
treea5d277ef1bd84a141edd7e7ad8597ac7fda24176
parentdcb20d1a8e7d9602e52a9b673ae4d7f746d2cbb2
drbd: protect updates to integrits_tfm by tconn->data->mutex

Since we need to hold that mutex anyways to make sure the peer
gets that change in the right position in the data stream,
it makes a lot of sense to use the same mutex to ensure existence
of the tfm.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c