Re: [PATCH] bnx2x: Replace semaphore stats_lock with mutex

2016-10-20 Thread David Miller
From: Binoy Jayan Date: Thu, 20 Oct 2016 14:22:12 +0530 > stats_lock is used as a simple mutex No, it is not. > @@ -1976,8 +1973,8 @@ int bnx2x_stats_safe_exec(struct bnx2x *bp, > /* Wait for statistics to end [while blocking further requests], >* then run supplied function 'safel

Re: [PATCH] bnx2x: Replace semaphore stats_lock with mutex

2016-10-20 Thread Arnd Bergmann
On Thursday, October 20, 2016 2:22:12 PM CEST Binoy Jayan wrote: > @@ -1976,8 +1973,8 @@ int bnx2x_stats_safe_exec(struct bnx2x *bp, > /* Wait for statistics to end [while blocking further requests], > * then run supplied function 'safely'. > */ > - rc = down_timeout