From: Mohammed Shafi Shajakhan <mohammed@codeaurora.org>
To: Christian Lamparter <chunkeey@googlemail.com>
Cc: Kalle Valo <kvalo@qca.qualcomm.com>,
linux-wireless@vger.kernel.org, ath10k@lists.infradead.org
Subject: Re: [PATCH 1/2] ath10k: add accounting for the extended peer statistics
Date: Thu, 15 Dec 2016 21:56:59 +0530 [thread overview]
Message-ID: <20161215162659.GA8030@atheros-ThinkPad-T61> (raw)
In-Reply-To: <1859306.unY1Rqbrx8@debian64>
Hello Christian,
On Wed, Dec 14, 2016 at 05:38:02PM +0100, Christian Lamparter wrote:
> On Wednesday, December 14, 2016 1:03:38 PM CET Mohammed Shafi Shajakhan wrote:
> > > On Wednesday, December 7, 2016 11:58:24 AM CET Mohammed Shafi Shajakhan wrote:
> > > > On Mon, Dec 05, 2016 at 10:52:45PM +0100, Christian Lamparter wrote:
> > > > > @@ -409,10 +410,12 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)
> > > > > goto free;
> > > > > }
> > > > >
> > > > > + if (!list_empty(&stats.peers))
> > > >
> > > > [shafi] sorry please correct me if i am wrong, for 'extended peer stats' we are checking
> > > > for normal 'peer stats' ? Is this the fix intended, i had started a build to
> > > > check your change and we will keep you posted, does this fix displaying
> > > > 'rx_duration' in ath10k fw_stats.
> > > The idea is not to queue any "extended peer stats" when there where no "peer stats" to
> > > begin with. Because otherwise, the function is still vulnerable to OOM since the
> > > extended peers stats will be queued unchecked (not that this is currently a problem).
> >
> > [shafi] list_splice_tail_init should still check for non-empty 'peers_extd' list
> > and append if required ? please let me know if i am still missing something
> Well, you can also count the entries in peers_extd and delete the old entries
> if they start to overflow. If you want to do it differently, please go ahead.
>
[shafi] sorry for the delay (got stuck up with something else), I will add some prints explicitly
and keep you posted ASAP. Since the extended peer stats gets updated periodically I
would like to confirm the debug linked list associated to the extended peer
stats does not overflows and potentially cause OOM.
regards,
shafi
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
WARNING: multiple messages have this Message-ID (diff)
From: Mohammed Shafi Shajakhan <mohammed@codeaurora.org>
To: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
Kalle Valo <kvalo@qca.qualcomm.com>
Subject: Re: [PATCH 1/2] ath10k: add accounting for the extended peer statistics
Date: Thu, 15 Dec 2016 21:56:59 +0530 [thread overview]
Message-ID: <20161215162659.GA8030@atheros-ThinkPad-T61> (raw)
In-Reply-To: <1859306.unY1Rqbrx8@debian64>
Hello Christian,
On Wed, Dec 14, 2016 at 05:38:02PM +0100, Christian Lamparter wrote:
> On Wednesday, December 14, 2016 1:03:38 PM CET Mohammed Shafi Shajakhan wrote:
> > > On Wednesday, December 7, 2016 11:58:24 AM CET Mohammed Shafi Shajakhan wrote:
> > > > On Mon, Dec 05, 2016 at 10:52:45PM +0100, Christian Lamparter wrote:
> > > > > @@ -409,10 +410,12 @@ void ath10k_debug_fw_stats_process(struct ath10k *ar, struct sk_buff *skb)
> > > > > goto free;
> > > > > }
> > > > >
> > > > > + if (!list_empty(&stats.peers))
> > > >
> > > > [shafi] sorry please correct me if i am wrong, for 'extended peer stats' we are checking
> > > > for normal 'peer stats' ? Is this the fix intended, i had started a build to
> > > > check your change and we will keep you posted, does this fix displaying
> > > > 'rx_duration' in ath10k fw_stats.
> > > The idea is not to queue any "extended peer stats" when there where no "peer stats" to
> > > begin with. Because otherwise, the function is still vulnerable to OOM since the
> > > extended peers stats will be queued unchecked (not that this is currently a problem).
> >
> > [shafi] list_splice_tail_init should still check for non-empty 'peers_extd' list
> > and append if required ? please let me know if i am still missing something
> Well, you can also count the entries in peers_extd and delete the old entries
> if they start to overflow. If you want to do it differently, please go ahead.
>
[shafi] sorry for the delay (got stuck up with something else), I will add some prints explicitly
and keep you posted ASAP. Since the extended peer stats gets updated periodically I
would like to confirm the debug linked list associated to the extended peer
stats does not overflows and potentially cause OOM.
regards,
shafi
next prev parent reply other threads:[~2016-12-15 16:27 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-05 21:52 [PATCH 1/2] ath10k: add accounting for the extended peer statistics Christian Lamparter
2016-12-05 21:52 ` Christian Lamparter
2016-12-05 21:52 ` [PATCH 2/2] ath10k: fix potential memory leak in ath10k_wmi_tlv_op_pull_fw_stats() Christian Lamparter
2016-12-05 21:52 ` Christian Lamparter
2016-12-30 9:11 ` [2/2] " Kalle Valo
2016-12-30 9:11 ` Kalle Valo
2016-12-07 6:28 ` [PATCH 1/2] ath10k: add accounting for the extended peer statistics Mohammed Shafi Shajakhan
2016-12-07 6:28 ` Mohammed Shafi Shajakhan
2016-12-13 12:41 ` Christian Lamparter
2016-12-13 12:41 ` Christian Lamparter
2016-12-14 7:33 ` Mohammed Shafi Shajakhan
2016-12-14 7:33 ` Mohammed Shafi Shajakhan
2016-12-14 16:38 ` Christian Lamparter
2016-12-14 16:38 ` Christian Lamparter
2016-12-15 16:26 ` Mohammed Shafi Shajakhan [this message]
2016-12-15 16:26 ` Mohammed Shafi Shajakhan
2016-12-15 16:43 ` Mohammed Shafi Shajakhan
2016-12-15 16:43 ` Mohammed Shafi Shajakhan
2016-12-15 17:24 ` Christian Lamparter
2016-12-15 17:24 ` Christian Lamparter
2016-12-16 5:24 ` Mohammed Shafi Shajakhan
2016-12-16 5:24 ` Mohammed Shafi Shajakhan
2016-12-17 17:46 ` [PATCH] ath10k: merge extended peer info data with existing peers info Christian Lamparter
2016-12-17 17:46 ` Christian Lamparter
2016-12-19 16:49 ` Mohammed Shafi Shajakhan
2016-12-19 16:49 ` Mohammed Shafi Shajakhan
2016-12-19 16:58 ` Mohammed Shafi Shajakhan
2016-12-19 16:58 ` Mohammed Shafi Shajakhan
2016-12-19 18:37 ` Christian Lamparter
2016-12-19 18:37 ` Christian Lamparter
2016-12-22 15:48 ` Mohammed Shafi Shajakhan
2016-12-22 15:48 ` Mohammed Shafi Shajakhan
2016-12-22 17:58 ` Christian Lamparter
2016-12-22 17:58 ` Christian Lamparter
2016-12-29 14:35 ` Mohammed Shafi Shajakhan
2016-12-29 14:35 ` Mohammed Shafi Shajakhan
2017-05-05 12:51 ` Kalle Valo
2017-05-05 12:51 ` Kalle Valo
2016-12-29 14:11 ` [1/2] ath10k: add accounting for the extended peer statistics Kalle Valo
2016-12-29 14:11 ` Kalle Valo
2016-12-30 14:35 ` Christian Lamparter
2016-12-30 14:35 ` Christian Lamparter
2016-12-30 14:47 ` Valo, Kalle
2016-12-30 14:47 ` Valo, Kalle
2017-01-03 5:28 ` Mohammed Shafi Shajakhan
2017-01-03 5:28 ` Mohammed Shafi Shajakhan
2017-01-04 20:06 ` Christian Lamparter
2017-01-04 20:06 ` Christian Lamparter
2017-01-11 10:49 ` Valo, Kalle
2017-01-11 10:49 ` Valo, Kalle
2017-01-13 13:28 ` Kalle Valo
2017-01-13 13:28 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161215162659.GA8030@atheros-ThinkPad-T61 \
--to=mohammed@codeaurora.org \
--cc=ath10k@lists.infradead.org \
--cc=chunkeey@googlemail.com \
--cc=kvalo@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.