From: Richard Gooch <rgooch@ras.ucalgary.ca>
To: Alexander Viro <viro@math.psu.edu>
Cc: Linus Torvalds <torvalds@transmeta.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] one of $BIGNUM devfs races
Date: Mon, 6 Aug 2001 19:27:23 -0600 [thread overview]
Message-ID: <200108070127.f771RNe27524@vindaloo.ras.ucalgary.ca> (raw)
In-Reply-To: <Pine.GSO.4.21.0108062053220.16817-100000@weyl.math.psu.edu>
In-Reply-To: <200108070051.f770pji27036@vindaloo.ras.ucalgary.ca> <Pine.GSO.4.21.0108062053220.16817-100000@weyl.math.psu.edu>
Alexander Viro writes:
>
>
> On Mon, 6 Aug 2001, Richard Gooch wrote:
>
> > More importantly, the loop you used doesn't protect insertions into
> > the table. So it's not safe on SMP.
>
> Nope. Allocation of entry itself is moved ahead of the loop, so
> we insert immediately after expanding the thing.
I'm referring specifically to this code:
new->inode.ino = fs_info.num_inodes + FIRST_INODE;
fs_info.table[fs_info.num_inodes++] = new;
This is not SMP safe. Besides, even the allocation loop isn't SMP
safe. If two tasks both allocate a table, they each could end up
calling:
kfree (fs_info.table);
for the same value. Or for a different one (which is also bad).
> > > PS: ObYourPropertyManager: karmic retribution?
> >
> > Um, retribution for putting in an awful lot of time developing devfs
> > (despite extreme hostility), at considerable personal sacrifice, and
> > being patient and civilised to those who flamed against it? My, how
> > I've been such a horrible person.
>
> <tongue-in-cheek>
> Nah, not that. Not plugging the holes that need to be plugged. Admit
> it, there is some poetic justice in the situation.
> </tongue-in-cheek>
Ah. I didn't get that one. OK. I guess seen that way it is funny.
Unfortunately I've been living with this flooding problem for several
months, so I'm a bit touchy on the subject. It is incredibly
disruptive to getting work done.
> As for the repugnant comments - IMO your "On the top of that, I have
> a life" used in the context it was used in counts pretty high on that
> scale. You know, you are _not_ unique in that respect.
Oh, that's not what I meant. I get the impression from some quarters
that one is expected to always put work ahead of personal
considerations. That's what I was railing against.
I apologise if it came across the other way (i.e. implying that others
don't have a life: it's obviously incorrect, and besides, I don't make
those kinds of cheap shots).
> Whatever. I just hope that this time all that mess will be fixed
> and by now I really don't care who does it and what does it take.
Well, I *am* doing it. Like I said, today was due to be the day.
Really.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
next prev parent reply other threads:[~2001-08-07 1:27 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-06 11:58 [PATCH] one of $BIGNUM devfs races Alexander Viro
2001-08-06 16:47 ` Richard Gooch
2001-08-06 16:56 ` Rik van Riel
2001-08-06 17:11 ` Richard Gooch
2001-08-06 23:50 ` Richard Gooch
2001-08-07 0:34 ` Alexander Viro
2001-08-07 0:51 ` Richard Gooch
2001-08-07 1:10 ` Alexander Viro
2001-08-07 1:27 ` Richard Gooch [this message]
2001-08-07 1:42 ` Alexander Viro
2001-08-07 2:00 ` Richard Gooch
2001-08-07 2:15 ` Alexander Viro
2001-08-07 5:17 ` Richard Gooch
2001-08-07 5:28 ` Alexander Viro
2001-08-07 10:21 ` Anton Altaparmakov
2001-08-07 17:09 ` Richard Gooch
2001-08-07 17:27 ` Arjan van de Ven
2001-08-07 17:28 ` Richard Gooch
2001-08-07 5:53 ` Richard Gooch
2001-08-07 6:23 ` Alexander Viro
2001-08-07 6:36 ` Richard Gooch
2001-08-07 6:40 ` Alexander Viro
2001-08-07 6:47 ` Richard Gooch
2001-08-07 7:31 ` Alexander Viro
2001-08-07 18:11 ` Richard Gooch
2001-08-07 18:23 ` Alexander Viro
2001-08-07 18:55 ` Richard Gooch
2001-08-07 19:10 ` Alexander Viro
2001-08-07 22:13 ` Richard Gooch
2001-08-06 23:59 Alan Cox
[not found] ` <no.id>
2001-08-06 23:54 ` Alan Cox
2001-08-06 23:55 ` Richard Gooch
2001-08-06 23:59 ` Richard Gooch
2001-08-07 16:22 ` Alan Cox
2001-08-07 19:04 ` Alan Cox
2001-08-07 19:16 ` Alexander Viro
2001-08-08 21:16 ` H. Peter Anvin
2001-08-08 21:47 ` Alexander Viro
2001-08-08 23:29 ` Richard Gooch
2001-08-07 19:09 ` Richard Gooch
2001-08-07 19:20 ` Alexander Viro
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=200108070127.f771RNe27524@vindaloo.ras.ucalgary.ca \
--to=rgooch@ras.ucalgary.ca \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/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).