From: viro@parcelfarce.linux.theplanet.co.uk
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ->pid in filesystem code
Date: Fri, 29 Aug 2003 09:17:50 +0100 [thread overview]
Message-ID: <20030829081750.GY454@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <3F4E5426.6050401@redhat.com>
On Thu, Aug 28, 2003 at 12:12:38PM -0700, Ulrich Drepper wrote:
> cifs:
>
> apparently uses current->pid to keep track of locking. This might
> mean that the current implementation is actually getting things very
> wrong, at least from the Unix semantics. Locking happens on process
> basis. I count 11 uses of ->pid, all suspicious. Using this
> filesystem with NPTL seems to be risky in the moment.
s/with NPTL//. I'm fairly certain that fs/cifs went into the tree without
a review and what's more, in this case I have very strong suspicion that
it might have been deliberately obfuscated to scare potential reviewers off.
Whatever the cause might be, the code *is* obfuscated enough to make it very
hard to review and it certainly contains a lot of dubious stuff.
> intermezzo:
>
> Wow, don't know where to start. A gazillion uses of ->pid. Some are
> print statements but there are others where the value is assigned to
> elements of some internal data structures. I think I would strongly
> suggest to avoid this filesystem when using NPTL until it is clear
> that there are no issues.
intermezzo needs a serious rewrite before it will be usable in 2.6. Authors
had promised to do something about it, but so far it hadn't reached the Linus'
tree.
> umsdos:
>
> The pid seems to be used for some kind of locking. Might be that
> using ->pid is correct here. In that case it needs comments.
Doesn't even build. Will need a rewrite or removal - it had been rotting
for a *long* time.
next prev parent reply other threads:[~2003-08-29 8:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 19:12 Ulrich Drepper
2003-08-29 8:17 ` viro [this message]
2003-08-29 7:05 Steve French
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=20030829081750.GY454@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=drepper@redhat.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome