diff options
Diffstat (limited to 'net/tipc/config.c')
-rw-r--r-- | net/tipc/config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index 4b981c053823..251f5a2028e4 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c | |||
@@ -42,8 +42,6 @@ | |||
42 | 42 | ||
43 | #define REPLY_TRUNCATED "<truncated>\n" | 43 | #define REPLY_TRUNCATED "<truncated>\n" |
44 | 44 | ||
45 | static DEFINE_MUTEX(config_mutex); | ||
46 | |||
47 | static const void *req_tlv_area; /* request message TLV area */ | 45 | static const void *req_tlv_area; /* request message TLV area */ |
48 | static int req_tlv_space; /* request message TLV area size */ | 46 | static int req_tlv_space; /* request message TLV area size */ |
49 | static int rep_headroom; /* reply message headroom to use */ | 47 | static int rep_headroom; /* reply message headroom to use */ |
@@ -223,7 +221,7 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area | |||
223 | { | 221 | { |
224 | struct sk_buff *rep_tlv_buf; | 222 | struct sk_buff *rep_tlv_buf; |
225 | 223 | ||
226 | mutex_lock(&config_mutex); | 224 | rtnl_lock(); |
227 | 225 | ||
228 | /* Save request and reply details in a well-known location */ | 226 | /* Save request and reply details in a well-known location */ |
229 | req_tlv_area = request_area; | 227 | req_tlv_area = request_area; |
@@ -337,6 +335,6 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area | |||
337 | 335 | ||
338 | /* Return reply buffer */ | 336 | /* Return reply buffer */ |
339 | exit: | 337 | exit: |
340 | mutex_unlock(&config_mutex); | 338 | rtnl_unlock(); |
341 | return rep_tlv_buf; | 339 | return rep_tlv_buf; |
342 | } | 340 | } |