Skip to contentSkip to conversation

[2.5] list_move_tail for sunrpc (1 occ)

PATCH New Lightweight patch manager 1 participant 1 message Jun 9, 2002

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.5] list_move_tail for sunrpc (1 occ)

This patch introduces the new list_move_tail macro for the sunrpc driver (net/sunrpc/svcsock.c)

net/sunrpc/svcsock.c +1 -2
@@ -1065,8 +1065,7 @@
 	if (test_bit(SK_TEMP, &svsk->sk_flags)) {
 		/* push active sockets to end of list */
 		spin_lock_bh(&serv->sv_lock);
-		list_del(&svsk->sk_list);
-		list_add_tail(&svsk->sk_list, &serv->sv_tempsocks);
+		list_move_tail(&svsk->sk_list, &serv->sv_tempsocks);
 		spin_unlock_bh(&serv->sv_lock);
 	}
 
Signature · 1 line
Lightweight patch manager using pine. If you have any objections, tell me.