drbd: use list_move_tail instead of list_del/list_add_tail
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 26 Sep 2012 12:16:30 +0000 (14:16 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:11:39 +0000 (14:11 +0100)
commita506c13a4d1ec5e1f2f9bc0123dacb5d123004d3
tree220cf5d8b8cbd88b498b4ae46e5f523cfb9449ab
parent1b6dd252e6c631322372c018ed546a108d9869d3
drbd: use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_worker.c