sfc: Replace stats_enabled flag with a disable count
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 29 Jan 2009 18:00:07 +0000 (18:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jan 2009 22:06:33 +0000 (14:06 -0800)
Currently we use a spin-lock to serialise statistics fetches and also
to inhibit them for short periods of time, plus a flag to
enable/disable statistics fetches for longer periods of time, during
online reset.  This was apparently insufficient to deal with the several
reasons for stats being disabled.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found