summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJean Tourrilhes <jt@hpl.hp.com>2002-09-18 10:55:56 -0400
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-09-18 10:55:56 -0400
commit91a0b343bcd240802551fb8456baf13255cd2cbf (patch)
tree1adce6814a7c84801899efd1abe10feca24935b4 /include/net
parent6701334ca0c128b17ce0858ca0604a7a7b6a91de (diff)
irda update 4/6:
o [FEATURE] Do the hashbin locking fixes for IrCOMM and IrLAN o [CORRECT] Remove all "save_flags(flags);cli();" in IrCOMM/IrLAN o [CORRECT] Fix other locking issues in IrCOMM
Diffstat (limited to 'include/net')
-rw-r--r--include/net/irda/ircomm_tty.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/irda/ircomm_tty.h b/include/net/irda/ircomm_tty.h
index a0c46e966e0d..e5985f9ea68a 100644
--- a/include/net/irda/ircomm_tty.h
+++ b/include/net/irda/ircomm_tty.h
@@ -104,6 +104,14 @@ struct ircomm_tty_cb {
long pgrp; /* pgrp of opening process */
int open_count;
int blocked_open; /* # of blocked opens */
+
+ /* Protect concurent access to :
+ * o self->open_count
+ * o self->ctrl_skb
+ * o self->tx_skb
+ * Maybe other things may gain to be protected as well...
+ * Jean II */
+ spinlock_t spinlock;
};
void ircomm_tty_start(struct tty_struct *tty);