Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1575238
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:core/debugobjects] debugobjects: Reduce contention on the global pool_lock |
| Date | 2017-02-07 00:00 +0100 |
| Message-ID | <t80qs-2JH-47@gated-at.bofh.it> (permalink) |
| References | <sWmFY-7Qg-25@gated-at.bofh.it> <t7bnP-2XG-1@gated-at.bofh.it> <t7rVE-5Vx-21@gated-at.bofh.it> <t7ZDY-2rk-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
* Waiman Long <longman@redhat.com> wrote:
> On 02/05/2017 05:03 AM, Ingo Molnar wrote:
> > * tip-bot for Waiman Long <tipbot@zytor.com> wrote:
> >
> >> ---
> >> lib/debugobjects.c | 31 ++++++++++++++++++++++---------
> >> 1 file changed, 22 insertions(+), 9 deletions(-)
> >>
> >> diff --git a/lib/debugobjects.c b/lib/debugobjects.c
> >> index dc78217..5476bbe 100644
> >> --- a/lib/debugobjects.c
> >> +++ b/lib/debugobjects.c
> >> @@ -172,25 +172,38 @@ alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr)
> >>
> >> /*
> >> * workqueue function to free objects.
> >> + *
> >> + * To reduce contention on the global pool_lock, the actual freeing of
> >> + * debug objects will be delayed if the pool_lock is busy. We also free
> >> + * the objects in a batch of 4 for each lock/unlock cycle.
> >> */
> >> +#define ODEBUG_FREE_BATCH 4
> >> static void free_obj_work(struct work_struct *work)
> >> {
> > Please put an extra newline before function definitions.
> >
> > Looks good otherwise!
> >
> > Thanks,
> >
> > Ingo
>
>
> Sure, I can do that. BTW the debugobjects patch was also pull into the
> -mm tree a little while ago. Will that be a problem?
Should not be a problem usually, Andrew typically drops such patches if they show
up in a maintainer tree via linux-next.
And once accepted we don't silently drop patches from -tip hosted maintainer
trees, so this is a reliable workflow.
Thanks,
Ingo
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[tip:core/debugobjects] debugobjects: Reduce contention on the global pool_lock tip-bot for Waiman Long <tipbot@zytor.com> - 2017-02-04 17:30 +0100
Re: [tip:core/debugobjects] debugobjects: Reduce contention on the global pool_lock Ingo Molnar <mingo@kernel.org> - 2017-02-05 11:10 +0100
Re: [tip:core/debugobjects] debugobjects: Reduce contention on the global pool_lock Waiman Long <longman@redhat.com> - 2017-02-06 23:10 +0100
Re: [tip:core/debugobjects] debugobjects: Reduce contention on the global pool_lock Ingo Molnar <mingo@kernel.org> - 2017-02-07 00:00 +0100
csiph-web