summaryrefslogtreecommitdiffstats
path: root/net/irda/irnet/irnet.h
diff options
context:
space:
mode:
authorSamuel Ortiz <samuel@sortiz.org>2010-10-05 01:24:20 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-11 02:11:34 +0200
commitf8cba16cad68c9b9ee7fecae48a1b91708e8e482 (patch)
treeeda3b276c3d5ff8a380b2553f6e8551e7f9a7075 /net/irda/irnet/irnet.h
parent5b40964eadea40509d353318d2c82e8b7bf5e8a5 (diff)
irda: Remove BKL instances from irnet
The code intends to lock the irnet_socket, so adding a mutex to it allows for a complet BKL removal. Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Diffstat (limited to 'net/irda/irnet/irnet.h')
-rw-r--r--net/irda/irnet/irnet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/irda/irnet/irnet.h b/net/irda/irnet/irnet.h
index 4300df35d37..0d82ff5aeff 100644
--- a/net/irda/irnet/irnet.h
+++ b/net/irda/irnet/irnet.h
@@ -458,6 +458,8 @@ typedef struct irnet_socket
int disco_index; /* Last read in the discovery log */
int disco_number; /* Size of the discovery log */
+ struct mutex lock;
+
} irnet_socket;
/*