diff options
| author | Shlomo Pongratz <[email protected]> | 2013-04-05 20:38:36 -0700 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2013-05-02 08:17:54 -0700 |
| commit | ad3f428e0fbab1f306cbc22340e9f7672a49147f (patch) | |
| tree | acdf67e8fb630712b238d6ab32da92eeed741637 /tools/perf/scripts/python/netdev-times.py | |
| parent | 533c165fa81d2c5f36adf41a07efeef0e4822300 (diff) | |
[SCSI] be2iscsi: Fix possible reentrancy issue in be_iopoll
The driver creates "NAPI" context per core which is fine,
however the above routine declares the ret variable as static!
Thus there is only one instance of this variable!
When this routine is called from more than one thread of execution,
than the result is unpredictable.
static unsigned int ret;
.....
ret = beiscsi_process_cq(pbe_eq);
<--------Another thread can enter here and change "ret".
if (ret < budget) {
....
}
<--------Another thread can enter here and change "ret".
return ret;
Fix - remove the "static"
Signed-off-by: Shlomo Pongratz <[email protected]>
Signed-off-by: Jayamohan Kallickal <[email protected]>
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions