summaryrefslogtreecommitdiffstats
path: root/include/linux/drbd_genl.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2014-08-14 18:33:30 +0200
committerJens Axboe <axboe@fb.com>2015-11-25 09:22:00 -0700
commit28bc3b8c71cda033a4c013131c635d1148889824 (patch)
treeceb03e905cdee0d06cd169f8affe46f722fd14d8 /include/linux/drbd_genl.h
parent1ec317d3d1f9b9ec19926fdf2fc59fa3ec8cd15d (diff)
downloadtalos-obmc-linux-28bc3b8c71cda033a4c013131c635d1148889824.tar.gz
talos-obmc-linux-28bc3b8c71cda033a4c013131c635d1148889824.zip
drbd: Fix locking across all resources
Instead of using a rwlock for synchronizing state changes across resources, take the request locks of all resources for global state changes. Use resources_mutex to serialize global state changes. This means that taking the request lock of a resource is now enough to prevent changes of that resource. (Previously, a read lock on the global state lock was needed as well.) Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/drbd_genl.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud