netconsole: make all dynamic netconsoles share a mutex
authorTejun Heo <[email protected]>
Thu, 25 Jun 2015 22:01:38 +0000 (15:01 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:39 +0000 (17:00 -0700)
commit369e5a888179f31dcd7cc8e02d695e6481a66075
treee61b241c00c61d2ee9986a2e3bd66d3df4a29157
parent698cf1c6163a2f2752d2d3e511a26c688f5778f3
netconsole: make all dynamic netconsoles share a mutex

Currently, each dynamic netconsole_target uses its own separate mutex to
synchronize the configuration operations.

This patch replaces the per-netconsole_target mutexes with a single
mutex - dynamic_netconsole_mutex.  The reduced granularity doesn't hurt
anything, the code is minutely simpler and this'd allow adding
operations which should be synchronized across all dynamic netconsoles.

Signed-off-by: Tejun Heo <[email protected]>
Cc: David Miller <[email protected]>
Cc: Kay Sievers <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/net/netconsole.c