diff options
author | simokawa <simokawa@FreeBSD.org> | 2007-07-20 03:42:57 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2007-07-20 03:42:57 +0000 |
commit | 91c4c4d8d5b70fd9f013e29ad79440cb377b8688 (patch) | |
tree | 3eb0e4ece6b47b409752009f32cacba6899da793 /sys/dev/firewire/firewirereg.h | |
parent | 87f8733d7051bed5b7408b3389e6cca4b14caca9 (diff) | |
download | FreeBSD-src-91c4c4d8d5b70fd9f013e29ad79440cb377b8688.zip FreeBSD-src-91c4c4d8d5b70fd9f013e29ad79440cb377b8688.tar.gz |
Protect transaction labels by its own lock to reduce lock contention.
Approved by: re (rwatson)
Diffstat (limited to 'sys/dev/firewire/firewirereg.h')
-rw-r--r-- | sys/dev/firewire/firewirereg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/firewire/firewirereg.h b/sys/dev/firewire/firewirereg.h index 0ceb5a2..73445e0 100644 --- a/sys/dev/firewire/firewirereg.h +++ b/sys/dev/firewire/firewirereg.h @@ -134,6 +134,7 @@ struct firewire_comm{ *arq, *atq, *ars, *ats, *it[FW_MAX_DMACH],*ir[FW_MAX_DMACH]; struct fw_xferlist tlabels[0x40]; u_char last_tlabel[0x40]; + struct mtx tlabel_lock; STAILQ_HEAD(, fw_bind) binds; STAILQ_HEAD(, fw_device) devices; u_int sid_cnt; |