]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: add lists to find oldest pending requests
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 22 Nov 2013 11:52:03 +0000 (12:52 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:12 +0000 (18:35 +0200)
commitffa67ea9f35be65a69e5907527e236706ee25d74
treeacdc6130cc3ed831dc1f5987494a241c73e0b9fa
parent8ef9c3f370f2fd77084fc550b540924fc18e5a72
drbd: add lists to find oldest pending requests

Adding requests to per-device fifo lists as soon as possible after
allocating them leaves a simple list_first_entry_or_null() to find the
oldest request, regardless what it is still waiting for.

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
drivers/block/drbd/drbd_req.c