From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Jean Delvare <khali@linux-fr.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
i2c@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: Push ioctl BKL down into the i2c code
Date: Fri, 23 May 2008 20:08:37 +0200 [thread overview]
Message-ID: <48370825.9070304@s5r6.in-berlin.de> (raw)
In-Reply-To: <20080523195302.42846394@hyperion.delvare>
Jean Delvare wrote:
> On Fri, 23 May 2008 10:46:30 +0200, Stefan Richter wrote:
>> AFAIU it's a preparation for
>>
>> --- a/include/linux/fs.h
>> +++ b/include/linux/fs.h
>> @@ ?? @@ struct file_operations {
>> unsigned int (*poll) (struct file *, struct poll_table_struct *);
>> - int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long);
>> long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long);
>>
>> Obvious benefits:
>> - No new .ioctl()s.
>
> I fail to see how this is related to the locking change.
I meant: After struct file_operations.ioctl is removed, developers can
only implement unlocked_ioctl methods. This includes code that is not
(yet) in mainline. To keep it compilable, it has to be converted to
unlocked_ioctl.
[The quickest kind of conversion is to replace the ioctl method by an
unlocked_ioctl method which itself takes the BKL. This kind of
conversion has of course no direct benefit for the functioning of the
kernel, but as mentioned it at least puts the BKL issue into the line of
sight of the people who work with the code.]
--
Stefan Richter
-=====-==--- -=-= =-===
http://arcgraph.de/sr/
next prev parent reply other threads:[~2008-05-23 18:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 21:23 Alan Cox
2008-05-23 7:35 ` Jean Delvare
2008-05-23 8:46 ` Stefan Richter
2008-05-23 17:53 ` Jean Delvare
2008-05-23 18:08 ` Stefan Richter [this message]
2008-05-23 10:46 ` Alan Cox
2008-05-23 14:01 ` [i2c] " Jon Smirl
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=48370825.9070304@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=i2c@lm-sensors.org \
--cc=khali@linux-fr.org \
--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
all inboxes | Powered by JetHome®