Neil Brown [Thu, 27 Mar 2003 02:57:29 +0000 (18:57 -0800)]
[PATCH] kNFSd: Be more careful with readlock in exp_parent
We currently hold a read_lock of dparent_lock
while calling exp_get_by_name on several ancestors
of a given dentry. However exp_get_by_name can
malloc(GFP_KERNEL), so that isn't a good idea.
Now we only claim the lock while actually
stepping up the parent chain.
Except for dev_node_t, the contents of include/pcmcia/driver_ops.h
aren't used anywhere within the kernel. It's a left-over file from the
days when cardbus 32-bit cards weren't handled as pci devices, and
their drivers as pci drivers. So, move the dev_node_t to
include/pcmcia/ds.h, remove the lone in-kernel reference to
driver_ops.h, and remove the contents of driver_ops.h.
[PCMCIA] remove "init_status" from struct pcmcia_driver
As we don't have a late_initcall in ds.c any more, we can't easily
distinguish between in-kernel drivers and those built as modules. This
information was used by cardmgr to detect whether "rmmod" makes
sense. As unloading of modules seems to be deprecated behaviour anyway
in 2.5., and the current driver unloading process is IMO broken
anyway, I don't shed any tears on this lost functionality.
Previously, "Driver Services" could only be called when the socket
drivers were initialized earlier. This caused an awful lot of
problems, especially when modprobe tried to load ds.ko and a pcmcia
card driver at once.
As all socket devices are registered with the driver model core as
being of "class_type pcmcia_socket_class", we can take use of that and
register them with "Driver Services" upon detection or upon
module loading of ds.c.
Also, the "I-need-two-initcalls-in-a-module"-tweak can go away.
Unfortunately, this patch reportedly breaks some RedHat pcmcia init
scritps - they relied on the failed loading of ds.c to detect that no
socket driver was loaded previously. To properly detect this, you
should take a look at the /sys/class/pcmcia_socket/devices directory.
Nathan Scott [Wed, 26 Mar 2003 20:25:17 +0000 (21:25 +0100)]
[XFS] Add back the pagebuf flag for scheduling on the data daemon. Moving
this into just a pagebuf_iodone parameter was broken as we don't have
sufficient state in all the places we need it to make the decision.
[XFS] Separate the quota source into its own subdirectory ala dmapi.
Push a bunch of quota- and dmapi-specific code down into these
subdirs which previously was compiled into the core XFS code,
and don't descend into these subdirs if options config'd off.
Russell King [Wed, 26 Mar 2003 14:58:05 +0000 (14:58 +0000)]
[ARM] Update Cyber2000fb driver for new fbcon API
This cset updates cyber2000fb (used on NetWinders) to the new
fbcon API, and adds cfbfillrect, cfbcopyarea and cfbimgblt
objects when building cyber2000fb.
Russell King [Wed, 26 Mar 2003 01:11:28 +0000 (01:11 +0000)]
[ARM] Fix ARM do_div() implementation
The ARM do_div() implementation was rather lax in that it only
performed a 32-bit divide. This cset fixes this oversight by
providing a 64-bit by 32-bit division in asm.
This is necessary for posix-timers to function correctly.
Nathan Scott [Tue, 25 Mar 2003 23:39:41 +0000 (00:39 +0100)]
[XFS] Next step in bhv code cleanup - this is a start on moving quota and dmapi
into behavior layers, purging several points where these sit slap bang in
the middle of XFS code (esp. read_super). Also removes numerous #ifdef's
and a bunch of unused #define's from all over the place. More to come.
Matthew Dharm [Tue, 25 Mar 2003 05:49:07 +0000 (21:49 -0800)]
[PATCH] usb-storage: cleanup
This patch changes some debugging output to be a bit more clear, and
removes some un-needed code -- it's no longer possible for us to have
active URBs in the disconnect path.
Matthew Dharm [Tue, 25 Mar 2003 05:45:59 +0000 (21:45 -0800)]
[PATCH] usb-storage: initialize urb status
This patch initializes the URB status before it's used. While not
technically required, it's good programming practice (and a similar bug
just bit us on 2.4 with UHCI).
Matthew Dharm [Tue, 25 Mar 2003 05:45:34 +0000 (21:45 -0800)]
[PATCH] usb-storage: LUN and isd200
This patch (developed with assistance from Jan Harkes
<jaharkes@cs.cmu.edu>) makes the LUN field of a bulk-only transport come
from a known-good source, rather than the likely-good command-byte. It
also updates the ISD200 driver to work with this change.
Oliver Neukum [Tue, 25 Mar 2003 05:29:44 +0000 (21:29 -0800)]
[PATCH] USB: storage device reset cleanup
> In the absence of far-reaching changes to the API, my suggestion is to
> have the emulated SCSI bus reset code in usb-storage do nothing but log an
> error message and return an error code. For the time being, considering
> how infrequently these resets occur, we can simply rely on the user
> unplugging the USB cable and putting it back in or cycling the power to
> the drive. (Yes, there are situations where these resets crop up
> regularly -- but they are the result of some other incompatibility that a
> device reset won't fix anyway.)
OK, as the consensus seems to be that in the short run changing things
for a full reset implementation is not worth it, here's an implementation
that does the best we can do without.
It issues a reset only if we can be sure that there are no other users
of the device in question.
As the version currently in the storage driver is broken anyway,
this is a definite improvement. And it addresses the need of exporting
the probe/remove functions for storage's sake.
Andi Kleen [Tue, 25 Mar 2003 03:54:54 +0000 (19:54 -0800)]
[PATCH] x86-64 updates
Lots of x86-64 updates. Merge with 2.4 and NUMA works now. Also reenabled
the preemptive kernel. And some other bug fixes.
IOMMU disabled by default now because it has problems.
- Add more CONFIG options for device driver debugging and iommu
force/debug. (don't enable iommu force currently)
- Some S3/ACPI fixes/cleanups from Pavel.
- Set MSG_COMPAT_* in msg_flags for networking 32bit emulation.
This unfortunately still doesn't fix the fd passing problems.
- Sync PCI IOMMU code with 2.4 (minor fixes, flush less often)
- Really fix UP compilation (Pavel)
- Reenable preempt
- Fix CONFIG_DISCONTIGMEM bootup and enable. Still needs more tuning.
- Fix some bugs in topology discovery and clean code up.
- Don't put unwind tables into object files
- Some kernel debugging hooks
- Move CPU detection into early real mode code to better interact with
vesafb consoles
- Initialize mode in real mode character output
- New 32bit FPU signal save/restore
- Various fixes in FPU handling in ptrace
- Fix security holes in ptrace (32bit and 64bit)
- Fix serial ioctl (including security hole)
- Add bluetooth ioctls to 32bit emu (from sparc64)
- Correctly enable si_val in queued signals in 32bit emulation
- Rework SEM_STAT emulation. LTP still fails unfortunately.
- Fix error case in msg* emulation
- Fix debug register access from ptrace (Michal Ludvig, me)
- Fix handling of NULL arguments in 32bit execve
- Fix some error cases for 32bit readv/writev (LTP still complains)
- Remove rate control from unimplemented syscall warnings
- Fix error message for missing aperture
- Turn some APIC printks into Dprintk to make the bootup more quiet
- Some fixes for no APIC (probably still broken), add disableapic
option (untested)
- Sync K8 MCE handler with 2.4. Should work a lot better now.
- Remove never used KDB hooks
- Fix buffer overflow in command line copying
- Merge from i386: use separate status word for lazy FPU state
- Don't force the IOMMU for dma masks < 4GB.
- Print backtrace in Sysrq-T (from Andrea)
- Merge from i386: fix FPU race in fork.
- Disable NX mode by default for now
- Rewrite dump_pagetable
- Fix off by one bug in ioremap (i386 merge)
- Merge from i386: handle VIA pci bridge bugs
- Disable NUMA ACPI support (no SRAT support yet)
- Fix aio 32bit emulation
- Increase 32bit address space to nearly 4GB
- Add exit_group syscall
- Fix TLS setting in clone (Ulrich Drepper)
Duncan Sands [Tue, 25 Mar 2003 03:34:04 +0000 (19:34 -0800)]
[PATCH] USB speedtouch: per vcc data cleanups
Use struct list_head rather than a singly linked list in udsl_vcc_data. Reject
attempts to open multiple vccs with the same vpi/vci pair. Some cleanups too.