Re: [PATCH] bnx2fc: fix race condition in bnx2fc_get_host_stats()

2017-05-24 Thread Martin K. Petersen
Maurizio, > If multiple tasks attempt to read the stats, it may happen that the > start_req_done completion is re-initialized while still being used by > another task, causing a list corruption. > > This patch fixes the bug by adding a mutex to serialize the calls to > bnx2fc_get_host_stats(). A

Re: [PATCH] bnx2fc: fix race condition in bnx2fc_get_host_stats()

2017-05-24 Thread Chad Dupuis
On Wed, 24 May 2017, 8:09am, Maurizio Lombardi wrote: > If multiple tasks attempt to read the stats, it may happen > that the start_req_done completion is re-initialized while > still being used by another task, causing a list corruption. > > This patch fixes the bug by adding a mutex to seriali

[PATCH] bnx2fc: fix race condition in bnx2fc_get_host_stats()

2017-05-24 Thread Maurizio Lombardi
If multiple tasks attempt to read the stats, it may happen that the start_req_done completion is re-initialized while still being used by another task, causing a list corruption. This patch fixes the bug by adding a mutex to serialize the calls to bnx2fc_get_host_stats(). WARNING: at lib/list_deb