diff options
author | Samuel Ortiz <samuel@sortiz.org> | 2010-10-05 01:24:20 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-11 02:11:34 +0200 |
commit | f8cba16cad68c9b9ee7fecae48a1b91708e8e482 (patch) | |
tree | eda3b276c3d5ff8a380b2553f6e8551e7f9a7075 /net/irda/irnet/irnet.h | |
parent | 5b40964eadea40509d353318d2c82e8b7bf5e8a5 (diff) | |
download | linux-f8cba16cad68c9b9ee7fecae48a1b91708e8e482.tar.gz linux-f8cba16cad68c9b9ee7fecae48a1b91708e8e482.tar.bz2 linux-f8cba16cad68c9b9ee7fecae48a1b91708e8e482.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/irda/irnet/irnet.h b/net/irda/irnet/irnet.h index 4300df35d37d..0d82ff5aeff1 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; /* |