]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/drbd/drbd_req.c
drbd: reduce number of spinlock drop/re-aquire cycles
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 4 Dec 2013 11:07:09 +0000 (12:07 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 13:22:21 +0000 (15:22 +0200)
commit35b5ed5bbac2432acdfce1d9dec8dbf8fe7d60dd
tree06bbb2b276bd9e1285b0b27a46d14bcf02c14cdb
parent28995af5cf3efd0bf4a74f5044cee0ae8cbc6b12
drbd: reduce number of spinlock drop/re-aquire cycles

Instead of dropping and re-aquiring the spinlock around the submit,
just remember that we want to submit, and do that only once we have
dropped the spinlock for good.

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