public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Nikita Danilov <nikita@clusterfs.com>
Cc: torvalds@osdl.org, Simon.Derr@bull.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cpuset semaphore depth check deadlock fix
Date: Mon, 12 Sep 2005 02:47:47 -0700	[thread overview]
Message-ID: <20050912024747.2ba6d39b.pj@sgi.com> (raw)
In-Reply-To: <17186.35554.43089.674075@gargle.gargle.HOWL>

Nikita wrote:
> I am somewhat concerned that new fields are added to the struct
> task_struct all the time: it's already over 1.3KB.

A reasonable concern.

In this case, I got sneaky, and lined up a short counter
with a short that was in the previous slot, so probably
didn't actually grow the task struct (until someone adds
something in between ...).

But that's a thin excuse.

I had thought about both having a global cpuset_sem_owner,
and about having the cpuset_sem_depth as a single global
rather than a per task counter.

The owner by itself was insufficient because it didn't track
the depth.  The global owner was insufficient because it wasn't
guarded atomically with the cpuset_sem semaphore.

It never occurred to me to try the combination.  Sweet.

I'll run this through my custom cpuset sausage grinder and
stress test, and see if the computer is equally delighted.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401

  reply	other threads:[~2005-09-12  9:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-09 22:01 [PATCH] cpuset semaphore depth check deadlock fix Paul Jackson
2005-09-09 22:15 ` Linus Torvalds
2005-09-09 23:35   ` Paul Jackson
2005-09-10  7:27 ` Nikita Danilov
2005-09-12  9:47   ` Paul Jackson [this message]
2005-09-12  9:54     ` Paul Jackson

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=20050912024747.2ba6d39b.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=Simon.Derr@bull.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikita@clusterfs.com \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox