Skip to contentSkip to conversation

dlm: use {lock|release}_sock instead, sctp_{lock|release}_sock

PATCH New Wang Weidong 1 participant 1 message Jan 21, 2014

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

PATCH 1/1 dlm: use {lock|release}_sock instead, sctp_{lock|release}_sock

As we remove the macros sctp_{lock|release}_sock in sctp.h, so change the use in dlm as well.

This is a followup to ("sctp: remove macros sctp_{lock|release}_sock").

---
 fs/dlm/lowcomms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/dlm/lowcomms.c +2 -2
index d90909e..ce53dff 100644
@@ -713,11 +713,11 @@ static void process_sctp_notification(struct connection *con,
 				return;
 
 			/* Peel off a new sock */
-			sctp_lock_sock(con->sock->sk);
+			lock_sock(con->sock->sk);
 			ret = sctp_do_peeloff(con->sock->sk,
 				sn->sn_assoc_change.sac_assoc_id,
 				&new_con->sock);
-			sctp_release_sock(con->sock->sk);
+			release_sock(con->sock->sk);
 			if (ret < 0) {
 				log_print("Can't peel off a socket for "
 					  "connection %d to node %d: err=%d",
Signature · 1 line
1.7.12