- 23 Oct, 2003 1 commit
-
-
Mike Anderson authored
This patch removes the delay in calling device_del on the sdev struct device during a surprise removal event. Reference counting functions for sd's scsi_disk structure where also added to fix issues of unregistering when a sd is open. I have tested this patch using scsi_debug with differnt combinations of adds / removes. I mounted both partitioned and un-partitioned sd disks, remove the host, and then did a umount. The ref count debug output shows the objects staying in place prior to the umount and cleaning up once the umount is called. This patch fixes an issue with a delayed call of device_del on the sdev_gendev struct device. - Remove the delayed call to device_del. - Add kobject to sd scsi_disk structure. - Add release function for scsi_disk kobject. - Add get / put functions for scsi_disk and calls to these functions. drivers/scsi/scsi.c | 4 -- drivers/scsi/scsi_sysfs.c | 3 -- drivers/scsi/sd.c | 63 ++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 57 insertions(+), 13 deletions(-)
-
- 16 Oct, 2003 3 commits
-
-
Patrick Mansfield authored
Re-roll of the patch against 2.6.0-test6 to allow overriding or setting of mode sense related flags, includes Alan Stern's as95 patch minus his scsiglue.c changes. Moves scsi_devinfo.h for use outside of drivers/scsi, and adds three new devinfo flags: BLIST_MS_SKIP_PAGE_08 BLIST_MS_SKIP_PAGE_3F BLIST_USE_10_BYTE_MS Adds a per host template flags, and use of it in scsiglue.c. The per host value can be overridden by a devinfo entry, the patch does not allow scsi_default_dev_flags to override default host values. USB mass storage and removable media (for testing mode page 3f use) were not tested, if you have a USB storage device that still chokes on mode sense 3f please give this a spin. drivers/scsi/scsi_devinfo.c | 15 +++++++++++---- drivers/scsi/scsi_devinfo.h | 17 ----------------- drivers/scsi/scsi_priv.h | 3 ++- drivers/scsi/scsi_scan.c | 17 +++++++++++++---- drivers/scsi/sd.c | 9 +++++++++ drivers/usb/storage/scsiglue.c | 8 ++++---- include/scsi/scsi_device.h | 2 ++ include/scsi/scsi_devinfo.h | 22 ++++++++++++++++++++++ include/scsi/scsi_host.h | 6 ++++++ 9 files changed, 69 insertions(+), 30 deletions(-)
-
Douglas Gilbert authored
However, drivers/scsi/constants.c does know about Report Luns?? Looks like a merging problem by Andries and me sometime back.
-
Mike Christie authored
If an upper layer driver is not loaded, and you write to a device's rescan attribute you will get an oops. The attached patch fixes this by testing if the device's driver variable is set before accessing it.
-
- 14 Oct, 2003 20 commits
-
-
bk://kernel.bkbits.net/jgarzik/net-drivers-2.5Linus Torvalds authored
into home.osdl.org:/home/torvalds/v2.5/linux
-
Pekka Pietikäinen authored
Resending the patch I sent some time ago for b44.c that nukes the 2.4 compatibility cruft as well. I'll do one for 2.4.23pre6 ASAP, hopefully being able sync the driver fully with the one in 2.6 (free_netdev() etc.).
-
Manfred Spraul authored
Too much copy&paste in a call to pci_unmap_single.
-
Jeff Garzik authored
Contributed by Ken Zalewski.
-
Simon Kelley authored
1) Remove "#include <linux/version.h>" which was not needed and added bad extra compile dependencies. 2) Fix typo in module description. 3) Make card detection code cope with buggy SMC CIS entries.
-
Jeff Garzik authored
Contributed by Josh Litherland, Donald Becker, and others.
-
Jeff Garzik authored
contributed by "JaReK" and Donald Becker.
-
Scott Feldman authored
* Critical bug fix: under heavy Tx stress using ZEROCOPY or TSO, if we ran out of Tx descriptors, we didn't calculate for the context descritor used as the first of the ZEROCOPY/TSO send, nor do we clean up the context desriptor bits in the case where the send isn't going to fit, where we need to undo the mappings. This bug was introduced with the 5.2.16 patch set which included a workaround for a hang on 82544 over PCI-X. This workaround cause the check for no-Tx- rosource logic to change, and this bug slipped in.
-
Andi Kleen authored
Fix harmless 64bit warnings in defxx.c
-
Andi Kleen authored
Fix some harmless integer/pointer size mismatch warnings in hp100.c on 64bit compiles
-
Andi Kleen authored
This marks some net drivers which are clearly not 64bit (judging from the warnings) as !64BIT. -Andi
-
Jeroen Vreeken authored
removes a verry old debug line from the bpqethernet driver that only fills logs.
-
Jeroen Vreeken authored
fix for the probe function of the scc driver which now uses an uninitialised scc struct for requesting an io region.
-
Scott Feldman authored
Finally got around to adding ethtool_ops to e100-3.0.x. I found a bug with get_eeprom() and it seems to work best if we add get_eeprom_len() to the ops list. Also moved check for offest + len < size into ethtool.c. I was able to test [GS]EEPROM, PHYS_ID, GSTATS, GSTRINGS, and TEST, and everything looks good. Should I send same for 2.4?
-
Russell King authored
pcnet_cs registers the network device too early. The effect of this is that the networking hotplug scripts are unable to bring the device up automatically. There are two issues: - we were registering the net device before we finished setting up the device (eg, reading the MAC address.) - we were using DEV_CONFIG_PENDING to block the net device "open" callback, and as we know the other methods may be called prior to open. My only concern with this patch is that we set info->node.dev_name after we register the net device, so use of cardctl during the hotplug scripts may give unexpected results. However, I am not aware of anyone using cardctl to read the device name in network hotplug scripts. Please review and merge. Thanks.
-
Stephen Hemminger authored
by converting to use alloc_etherdev.
-
Michael Hunold authored
This restores the changes to the dvb_net code done by <shemminger@osdl.org>, which were wiped out by my last patchset.
-
Linus Torvalds authored
-
Linus Torvalds authored
-
Linus Torvalds authored
-
- 13 Oct, 2003 15 commits
-
-
Linus Torvalds authored
flag (and order it on SMP), so that del_timer_sync() always sees the timer either pending or running if it is active.
-
Linus Torvalds authored
Cset exclude: mingo@elte.hu[torvalds]|ChangeSet|20031012025453|05000
-
David S. Miller authored
into kernel.bkbits.net:/home/davem/net-2.5
-
Stephen Hemminger authored
-
Bart De Schuymer authored
-
Stephen Hemminger authored
My earlier change broke the if_ptr assumption used by SPPP drivers. This makes sealevel driver do if_ptr like it used to.
-
Stephen Hemminger authored
In 2.6.0-test6, I put in a patch which fixed sealevel driver, but broke all the other wan devices because it got rid of one level of indirection. This puts back the indirection, and hopefully prevents others from misreading it the same way. The SPPP drivers expect that netdev->priv points to device local structure whose first element is a pointer to the ppp device.
-
Wensong Zhang authored
-
Wensong Zhang authored
Patch from Horms <horms@vergenet.net> Since both the primay and the backup sync daemon can be started in a box at a time, we must just check if the MASTER bit is set in the sync state.
-
Herbert Xu authored
-
Manfred Spraul authored
This fixes the stack end detection properly, and verifies that the stack content printing does not overflow into the next page even partially. This is required especially for x86 BIOSes that misalign the stack, together with the page access debugging that unmaps unused kernel pages to check for valid accesses. Architectures with special needs (eg HPPA with stacks that grow up) can override the kernel stack end test with __HAVE_ARCH_KSTACK_END if they ever enable the anal slab debugging code.
-
Andi Kleen authored
This is the minimal change to make "mlockall()" not complain about the occasional PROT_NONE area. PROT_NONE is commonly used on x86-64, and is no reason to not lock in the rest of the mappings into memory.
-
Geert Uytterhoeven authored
Sun-3: Add missing include (needed because of __attribute_used__ in <linux/init.h>)
-
Geert Uytterhoeven authored
M68k: Export missing symbol csum_partial
-
David Woodhouse authored
- add disallow_signal() to complement allow_signal(), rather than having different subsystems try to do it by hand. - add a version of dequeue_signal() which does the necessary locking on its own, again to avoid having modules have to care. - let allow_signal() to actually allow signals other than SIGKILL. Currently they get either converted to SIGKILL or silently dropped, according to whether your kernel thread happens to have sa_handler set for the signal in question. (Barf alert: we do this by just installing a dummy handler) - make jffs2 use the cleaned up infrastructure
-
- 12 Oct, 2003 1 commit
-
-
Andi Kleen authored
From Pavel Machek. Make software suspend compile again on x86-64
-