From: Steven Rostedt <rostedt@goodmis.org>
To: Yordan Karadzhov <ykaradzhov@vmware.com>
Cc: "linux-trace-devel@vger.kernel.org" <linux-trace-devel@vger.kernel.org>
Subject: Re: [PATCH v2 1/8] kernel-shark-qt: Lock completely the searching panel when searching
Date: Fri, 14 Dec 2018 09:52:44 -0500 [thread overview]
Message-ID: <20181214095244.444f4819@gandalf.local.home> (raw)
In-Reply-To: <20181214095037.05d37f87@gandalf.local.home>
On Fri, 14 Dec 2018 09:50:37 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Fri, 14 Dec 2018 12:52:34 +0000
> Yordan Karadzhov <ykaradzhov@vmware.com> wrote:
>
> > So far, when searching we lock only the text field of the searching
> > panel. This may create a deadlock (as reported by Steven) in the case
BTW, we should probably use the normal way of documenting "reported
by", which would be (see below).
> > when the user presses "Next" or "Prev." button in the same time when
> > a parallelized search is in progress. This patch aims to protect
> > against such a deadlock by locking all components of the panel, except
> > the "Stop search" button.
> > The text panel gets locked only during the actual searching.
> >
Reporte-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
> > Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
> > ---
> > kernel-shark-qt/src/KsTraceViewer.cpp | 27 +++++++++++++++++++--------
> > kernel-shark-qt/src/KsTraceViewer.hpp | 2 ++
> > 2 files changed, 21 insertions(+), 8 deletions(-)
> >
> Can we add two helper functions and use that instead?
>
> void KsTraceViewer::_searchPanelLock(void)
> {
> _lockSearchPanel(true);
> }
>
> void KsTraceViewer::_searchPanelUnlock(void)
> {
> _lockSearchPanel(false);
> }
>
> This its more in line with the lock / unlock paradigm than passing in
> true and false.
>
I may apply this series anyway, and we could just add the helper
functions in a separate patch.
-- Steve
next prev parent reply other threads:[~2018-12-14 14:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 12:52 [PATCH v2 0/8] More modifications toward KS 1.0 Yordan Karadzhov
2018-12-14 12:52 ` [PATCH v2 1/8] kernel-shark-qt: Lock completely the searching panel when searching Yordan Karadzhov
2018-12-14 14:50 ` Steven Rostedt
2018-12-14 14:52 ` Steven Rostedt [this message]
2018-12-14 12:52 ` [PATCH v2 2/8] kernel-shark-qt: Fix a simple bug in KsTraceViewer::_searchReset() Yordan Karadzhov
2018-12-14 12:52 ` [PATCH v2 3/8] kernel-shark-qt: Make the parallelized search stoppable Yordan Karadzhov
2018-12-14 17:17 ` Steven Rostedt
2018-12-17 17:02 ` Yordan Karadzhov (VMware)
2018-12-14 12:52 ` [PATCH v2 4/8] kernel-shark-qt: Avoid spurious searches Yordan Karadzhov
2018-12-14 12:52 ` [PATCH v2 5/8] kernel-shark-qt: Create "Apply filter XX" checkboxes in KsUtils Yordan Karadzhov
2018-12-14 17:01 ` Steven Rostedt
2018-12-17 17:44 ` Yordan Karadzhov (VMware)
2018-12-14 12:52 ` [PATCH v2 6/8] kernel-shark-qt: Improve the KsQuickContextMenu Yordan Karadzhov
2018-12-14 12:52 ` [PATCH v2 7/8] kernel-shark-qt: Update the documentation link Yordan Karadzhov
2018-12-14 12:52 ` [PATCH v2 8/8] kernel-shark-qt: Version 1.0.0 Yordan Karadzhov
2018-12-14 17:10 ` [PATCH v2 0/8] More modifications toward KS 1.0 Steven Rostedt
2018-12-17 17:11 ` Yordan Karadzhov (VMware)
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=20181214095244.444f4819@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=ykaradzhov@vmware.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).