Re: [PATCH net-next 4/7] cxgb4: prevent simultaneous execution of service_ofldq()

2015-12-05 Thread David Miller
From: Hariprasad Shenai Date: Fri, 4 Dec 2015 14:18:08 +0530 > + u8 service_ofldq_running; /* service_ofldq() is processing sendq */ Please use 'bool' and 'true'/'false'. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message

[PATCH net-next 4/7] cxgb4: prevent simultaneous execution of service_ofldq()

2015-12-04 Thread Hariprasad Shenai
Change mutual exclusion mechanism to prevent multiple threads of execution from running in service_ofldq() at the same time. The old mechanism used an implicit guard on the down-call path and none on the restart path and wasn't working. This checking makes the mechanism explicit and is much