* Dead & Dying interfaces
@ 2002-11-15 18:47 Matthew Wilcox
2002-11-15 19:00 ` William Lee Irwin III
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Matthew Wilcox @ 2002-11-15 18:47 UTC (permalink / raw)
To: linux-kernel
We forgot to remove a lot of crap interfaces during 2.5 development.
Let's start a list now so we don't forget during 2.7.
This list is a combination of interfaces which have gone during 2.5 and
interfaces that should go during 2.7. Think of it as a `updating your
driver/filesystem to sane code' guide.
sleep_on, sleep_on_timeout, interruptible_sleep_on,
interruptible_sleep_on_timeout
-> use wait_event interfaces
flush_page_to_ram
-> Documentation/cachetlb.txt
cli, sti, save_flags
-> Documentation/cli-sti-removal.txt
pcibios_*
-> Documentation/pci.txt
virt_to_bus, bus_to_virt
-> Documentation/DMA-mapping.txt
check_region
-> Just use request_region and handle the failure
kmap
-> Use kmap_atomic instead
task queues
-> work queues
lock_kernel
-> spinlocks
smp_processor_id
-> get_cpu
--
Revolutions do not require corporate support.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
@ 2002-11-15 19:00 ` William Lee Irwin III
2002-11-16 2:49 ` Alan Cox
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: William Lee Irwin III @ 2002-11-15 19:00 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-kernel
On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
> We forgot to remove a lot of crap interfaces during 2.5 development.
> Let's start a list now so we don't forget during 2.7.
> This list is a combination of interfaces which have gone during 2.5 and
> interfaces that should go during 2.7. Think of it as a `updating your
> driver/filesystem to sane code' guide.
It's very possible (and in fact bugfixing) to incrementally convert
callers of these interfaces, even during freezes or stable releases.
A bugfix is a bugfix. =)
Cheers,
Bill
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
2002-11-15 19:00 ` William Lee Irwin III
@ 2002-11-16 2:49 ` Alan Cox
2002-11-17 0:41 ` Greg KH
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2002-11-16 2:49 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Linux Kernel Mailing List
On Fri, 2002-11-15 at 18:47, Matthew Wilcox wrote:
>
> We forgot to remove a lot of crap interfaces during 2.5 development.
> Let's start a list now so we don't forget during 2.7.
>
> This list is a combination of interfaces which have gone during 2.5 and
> interfaces that should go during 2.7. Think of it as a `updating your
> driver/filesystem to sane code' guide.
>
> sleep_on, sleep_on_timeout, interruptible_sleep_on,
> interruptible_sleep_on_timeout
> -> use wait_event interfaces
We need to fix wait_event first, probably to do event variables of some
kind (wait_nonzero_interruptible() etc).
get_cpu is the wrong thing in several places too
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
2002-11-15 19:00 ` William Lee Irwin III
2002-11-16 2:49 ` Alan Cox
@ 2002-11-17 0:41 ` Greg KH
2002-11-17 1:43 ` Alan Cox
2002-11-18 17:55 ` Dave Jones
2002-12-05 4:25 ` William Lee Irwin III
4 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2002-11-17 0:41 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-kernel
On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
>
> pcibios_*
> -> Documentation/pci.txt
I still have patches that remove all of the instances of this. I think
it's already in the -ac kernel. I'll forward port it next week and send
it to Linus.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-17 0:41 ` Greg KH
@ 2002-11-17 1:43 ` Alan Cox
0 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2002-11-17 1:43 UTC (permalink / raw)
To: Greg KH; +Cc: Matthew Wilcox, Linux Kernel Mailing List
On Sun, 2002-11-17 at 00:41, Greg KH wrote:
> On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
> >
> > pcibios_*
> > -> Documentation/pci.txt
>
> I still have patches that remove all of the instances of this. I think
> it's already in the -ac kernel. I'll forward port it next week and send
> it to Linus.
Its in the -ac tree. No problems reported except the pcmcia bug which
you sent a patch for
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
` (2 preceding siblings ...)
2002-11-17 0:41 ` Greg KH
@ 2002-11-18 17:55 ` Dave Jones
2002-11-19 19:01 ` Adrian Bunk
2002-12-05 4:25 ` William Lee Irwin III
4 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2002-11-18 17:55 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-kernel
On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
> This list is a combination of interfaces which have gone during 2.5 and
> interfaces that should go during 2.7. Think of it as a `updating your
> driver/filesystem to sane code' guide.
Adding printk (KERN_DEBUG "Usage of check_region() is deprecated");
to such interfaces may be an idea. For some of them, however it
is probably a bad idea if the logs get flooded with zillions of warnings
each boot. Maybe just for the "We really should purge this crap next
time" functions ?
Dave
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-18 17:55 ` Dave Jones
@ 2002-11-19 19:01 ` Adrian Bunk
0 siblings, 0 replies; 8+ messages in thread
From: Adrian Bunk @ 2002-11-19 19:01 UTC (permalink / raw)
To: Dave Jones, Matthew Wilcox, linux-kernel
On Mon, Nov 18, 2002 at 05:55:35PM +0000, Dave Jones wrote:
> On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
>
> > This list is a combination of interfaces which have gone during 2.5 and
> > interfaces that should go during 2.7. Think of it as a `updating your
> > driver/filesystem to sane code' guide.
>
> Adding printk (KERN_DEBUG "Usage of check_region() is deprecated");
> to such interfaces may be an idea. For some of them, however it
> is probably a bad idea if the logs get flooded with zillions of warnings
> each boot. Maybe just for the "We really should purge this crap next
> time" functions ?
What about a #warning? With a #warning everyone compiling this code sees
that there's something that needs updating but it doesn't flood the logs
of users (#warning was already used for linux/malloc.h in 2.4).
> Dave
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Dead & Dying interfaces
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
` (3 preceding siblings ...)
2002-11-18 17:55 ` Dave Jones
@ 2002-12-05 4:25 ` William Lee Irwin III
4 siblings, 0 replies; 8+ messages in thread
From: William Lee Irwin III @ 2002-12-05 4:25 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-kernel
On Fri, Nov 15, 2002 at 06:47:25PM +0000, Matthew Wilcox wrote:
> We forgot to remove a lot of crap interfaces during 2.5 development.
> Let's start a list now so we don't forget during 2.7.
> This list is a combination of interfaces which have gone during 2.5 and
> interfaces that should go during 2.7. Think of it as a `updating your
> driver/filesystem to sane code' guide.
do_each_thread()/for_each_process():
------------------------------------
(1) reserved for special "catastrophic" operations
e.g. OOM, killall, cap_set_all(), etc.
(2) use for_each_task_pid() or maintain lists/tables of tasks etc. instead
(3) kernel API is missing some pieces to make it avoidable for all callers
Bill
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-12-05 4:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-15 18:47 Dead & Dying interfaces Matthew Wilcox
2002-11-15 19:00 ` William Lee Irwin III
2002-11-16 2:49 ` Alan Cox
2002-11-17 0:41 ` Greg KH
2002-11-17 1:43 ` Alan Cox
2002-11-18 17:55 ` Dave Jones
2002-11-19 19:01 ` Adrian Bunk
2002-12-05 4:25 ` William Lee Irwin III
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.