archive mirror
 help / color / mirror / Atom feed
From: Viresh Kumar <>
To: Stephen Boyd <>
Cc: Nishanth Menon <>, Viresh Kumar <>,
	"" <>,
	Vincent Guittot <>,
	Rafael Wysocki <>,
	Dmitry Osipenko <>,
	Linux Kernel Mailing List <>
Subject: Re: [PATCH] opp: Reinitialize the list_kref before adding the static OPPs again
Date: Mon, 11 Nov 2019 13:51:31 +0530	[thread overview]
Message-ID: <20191111082131.ysngb7dfal6fpu2h@vireshk-i7> (raw)
In-Reply-To: <>

On 30-10-19, 07:33, Stephen Boyd wrote:
> I agree a simple refcount_t makes more sense here instead of using a
> kref. That would be clearer.

I was using kref as I wanted to call the cleanup routine when kref
reaches 0. A refcount_t will have the same problem as the warning in
this came from refcount mechanism only (which is used by kref). You
can't increment a refcount_t if it is zero :)

Any other suggestions other than local counting ?


  parent reply	other threads:[~2019-11-11  8:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18  9:28 [PATCH] opp: Reinitialize the list_kref before adding the static OPPs again Viresh Kumar
2019-10-18 15:35 ` Dmitry Osipenko
2019-10-21  2:18   ` Viresh Kumar
2019-10-18 21:12 ` Stephen Boyd
2019-10-21  2:25   ` Viresh Kumar
2019-10-28 12:01     ` Stephen Boyd
2019-10-30  7:50       ` Viresh Kumar
     [not found]         ` <>
2019-11-11  8:21           ` Viresh Kumar [this message]
2019-11-11 11:31             ` Viresh Kumar

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191111082131.ysngb7dfal6fpu2h@vireshk-i7 \ \ \ \ \ \ \ \ \ \

* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).