Julia Lawall 4cec72c890 [TIPC]: Use tipc_port_unlock
The file net/tipc/port.c takes a lock using the function tipc_port_lock and
then releases the lock sometimes using tipc_port_unlock and sometimes using
spin_unlock_bh(p_ptr->publ.lock).  tipc_port_unlock simply does the
spin_unlock_bh, but it seems cleaner to use it everywhere.

The problem was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
struct port *p_ptr;
@@

   p_ptr = tipc_port_lock(...)
   ...
(
   p_ptr = tipc_port_lock(...);
|
?- spin_unlock_bh(p_ptr->publ.lock);
+  tipc_port_unlock(p_ptr);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Jon Paul Maloy <maloy@donjonn.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:01:05 -08:00
..
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-05-24 16:36:50 -07:00
2007-08-02 19:42:31 -07:00
2007-02-10 23:20:15 -08:00
2006-01-12 14:06:31 -08:00
2007-02-10 23:20:15 -08:00
2007-07-26 11:11:56 -07:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-08-02 19:42:31 -07:00
2007-02-10 23:20:15 -08:00
2008-01-28 15:01:05 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-12-14 13:54:37 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:15 -08:00