Ver código fonte

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>
Jon Mason 14 anos atrás
pai
commit
8424e00dfd
2 arquivos alterados com 323 adições e 480 exclusões
  1. 322 480
      drivers/net/vxge/vxge-config.c
  2. 1 0
      drivers/net/vxge/vxge-config.h

Diferenças do arquivo suprimidas por serem muito extensas
+ 322 - 480
drivers/net/vxge/vxge-config.c


+ 1 - 0
drivers/net/vxge/vxge-config.h

@@ -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;
 };
 
 /*

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff