All of lore.kernel.org
 help / color / mirror / Atom feed
From: aLeJ <fuzzy.alej@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] fs/smbfs/proc.c -> replace direct assignment with
Date: Thu, 30 Jun 2005 20:03:13 +0000	[thread overview]
Message-ID: <1120168513.16719.1.camel@localhost> (raw)
In-Reply-To: <1120126573.24539.6.camel@localhost>

El jue, 30-06-2005 a las 11:39 -0700, Nishanth Aravamudan escribió:
> On 30.06.2005 [21:48:56 +0200], aLeJ wrote:
> > > the memory barrier is really necessary (as pointed out earlier in the list
> > > by Nishanth Aravamudan)?  if not, __set_current_state does the job.
> > > 
> > > I'd appreciate some notes/thoughts/tips/whatever on which conditions a
> > > memory barrier is really needed, or, more clearly, when the absence of a
> > > memory barrier breaks stuff.
> > > 
> > > TIA :)
> > 
> > As said in the TODO:
> > 
> > "...
> > Don't forget to set_current_state(TASK_{,UN}INTERRUPTIBLE); before
> > schedule*().
> > ..."
> > 
> > And in this case, it is just before schedule, so I considered to change it.
> > Maybe the use of __set_current is for places where there is not schedule?
> > (Just a try :p)
> 
> So, when you are adding yourself to a wait-queue, you have to be set in
> the appropriate state to make sure you receive the appropriate wake-up
> events.
> 
> When removing yourself, though, it is less critical, so you are able to
> use __set_current_state() [which is the same as direct assignment].
> 
> I had a mail from Oliver Neukum which discussed these issues, but am
> having some trouble locating it. Once I do, I'll send it back out in
> reply to this thread.
> 
> In any case, this patch is not necessary, as I already have a patch in
> the -KJ tree which replaces the state change and timeout with msleep().
> Please make sure your fixes don't collide with existing -kj fixes (or
> -mm ones, if possible).
> 
> Thanks,
> Nish

Ok, I'll be waiting the replay to see the mail! :D
And thanks, I'm very newbie and I love learning so all help given to me
is very appreciated.
Thank you, 
	aLeJ. ;)

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

      parent reply	other threads:[~2005-06-30 20:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30  8:28 [KJ] fs/smbfs/proc.c -> replace direct assignment with aLeJ
2005-06-30  8:28 ` aLeJ
2005-06-30 16:12 ` Ricardo Nabinger Sanchez
2005-06-30 17:53 ` aLeJ
2005-06-30 18:39 ` Nishanth Aravamudan
2005-06-30 20:03 ` aLeJ [this message]

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=1120168513.16719.1.camel@localhost \
    --to=fuzzy.alej@gmail.com \
    --cc=kernel-janitors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.