mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-16 19:04:41 +08:00
vxge: serialize access to steering control register
It is possible for multiple callers to access the firmware interface for the same vpath simultaneously, resulting in uncertain output. Add locks to serialize access. Also, make functions only accessed locally static, thus requiring some movement of code blocks. Signed-off-by: Jon Mason <jon.mason@exar.com> Signed-off-by: Ram Vepa <ram.vepa@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ddd62726e0
commit
8424e00dfd
File diff suppressed because it is too large
Load Diff
@ -641,6 +641,7 @@ struct __vxge_hw_virtualpath {
|
||||
struct vxge_hw_vpath_stats_hw_info *hw_stats;
|
||||
struct vxge_hw_vpath_stats_hw_info *hw_stats_sav;
|
||||
struct vxge_hw_vpath_stats_sw_info *sw_stats;
|
||||
spinlock_t lock;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user