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:
Родитель
ddd62726e0
Коммит
8424e00dfd
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче