From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Robert Richter <rric@kernel.org>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Tejun Heo <tj@kernel.org>,
oprofile-list@lists.sf.net, linux-s390@vger.kernel.org,
linux-kernel@vger.kernel.org,
Hendrik Brueckner <brueckner@linux.vnet.ibm.com>,
Andreas Krebbel <krebbel@linux.vnet.ibm.com>,
Andreas Arnez <arnez@linux.vnet.ibm.com>,
William Cohen <wcohen@redhat.com>
Subject: Re: [PATCH] s390/oprofile: Remove deprecated create_workqueue
Date: Thu, 9 Jun 2016 11:00:56 +0200 [thread overview]
Message-ID: <20160609090056.GC3250@osiris> (raw)
In-Reply-To: <20160607215912.GA19722@Karyakshetra>
On Wed, Jun 08, 2016 at 03:29:12AM +0530, Bhaktipriya Shridhar wrote:
> A dedicated workqueue has been used since the workqueue hws_wq with
> workitem &cb->worker, is involved in hardware based sampling
> on System z processors.
>
> Since, these are long-running work items and aren't involved in memory
> reclaim in any way, system_long_wq has been used.
>
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---
> arch/s390/oprofile/hwsampler.c | 21 +++------------------
> 1 file changed, 3 insertions(+), 18 deletions(-)
Besides that your patch doesn't compile... ;)
Removing the flush_workqueue is probably wrong, since the oprofile module
can now be unloaded while there could still be a reference to a worker
structure owned by the oprofile module.
However I'm wondering if we shouldn't simply remove at least the s390
specific hwswampler code from the oprofile module. This would still leave
the common code timer based sampling mode for oprofile working on s390.
It looks like the oprofile user space utility nowadays (since 2012) uses
the kernel perf interface instead of the oprofile interface anyway, if
present. So the oprofile module itself doesn't seem to have too many users
left.
Any opinions?
>
> - if (hws_wq)
> - flush_workqueue(hws_wq);
> -
> mutex_lock(&hws_sem);
>
> if (hws_state == HWS_STOPPED) {
> @@ -1059,10 +1048,6 @@ int hwsampler_shutdown(void)
> hws_alert = 0;
> deallocate_sdbt();
> }
> - if (hws_wq) {
> - destroy_workqueue(hws_wq);
> - hws_wq = NULL;
> - }
>
> unregister_external_irq(EXT_IRQ_MEASURE_ALERT, hws_ext_handler);
> hws_state = HWS_INIT;
> --
> 2.1.4
>
next prev parent reply other threads:[~2016-06-09 9:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-07 21:59 [PATCH] s390/oprofile: Remove deprecated create_workqueue Bhaktipriya Shridhar
2016-06-07 23:29 ` kbuild test robot
2016-06-09 9:00 ` Heiko Carstens [this message]
2016-06-13 16:29 ` Robert Richter
2016-06-13 20:44 ` William Cohen
2016-06-14 5:36 ` Heiko Carstens
2016-06-14 13:28 ` Robert Richter
2016-06-14 15:56 ` Heiko Carstens
2016-06-17 9:08 ` Hendrik Brueckner
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=20160609090056.GC3250@osiris \
--to=heiko.carstens@de.ibm.com \
--cc=arnez@linux.vnet.ibm.com \
--cc=bhaktipriya96@gmail.com \
--cc=brueckner@linux.vnet.ibm.com \
--cc=krebbel@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=oprofile-list@lists.sf.net \
--cc=rric@kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=tj@kernel.org \
--cc=wcohen@redhat.com \
/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 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).