On 2015/9/24 13:34, David Miller wrote:
> From: Weidong Wang
> Date: Thu, 24 Sep 2015 10:00:45 +0800
>
>> It does affect the intention. Although, the problem exists then makes the
>> system panic within some case.
>>
>> Do you have any idea about it?
>
> Allocate the statistics block at probe ti
From: Weidong Wang
Date: Thu, 24 Sep 2015 10:00:45 +0800
> It does affect the intention. Although, the problem exists then makes the
> system panic within some case.
>
> Do you have any idea about it?
Allocate the statistics block at probe time so that this problem is
impossible.
--
To unsubscr
On 2015/9/24 6:31, David Miller wrote:
> From: Weidong Wang
> Date: Tue, 22 Sep 2015 20:42:40 +0800
>
>> @@ -880,6 +882,7 @@ bnx2_alloc_mem(struct bnx2 *bp)
>> }
>> }
>>
>> +spin_lock(&bp->stats64_lock);
>> bp->stats_blk = status_blk + status_blk_size;
>>
>> bp->st
From: Weidong Wang
Date: Tue, 22 Sep 2015 20:42:40 +0800
> @@ -880,6 +882,7 @@ bnx2_alloc_mem(struct bnx2 *bp)
> }
> }
>
> + spin_lock(&bp->stats64_lock);
> bp->stats_blk = status_blk + status_blk_size;
>
> bp->stats_blk_mapping = bp->status_blk_mapping + sta
we have two processes to do:
P1#: ifconfig eth0 down; which will call bnx2_close, then will
, and set Null to stats_blk
P2#: ifconfig eth0; which will call bnx2_get_stats64, it will
use stats_blk.
In one case:
--P1#-- --P2#--
stats_blk(no null)