- 06 Nov, 2002 1 commit
-
-
Patrick Mansfield authored
This patch fixes queue depth setting of scsi devices. This is done by pairing shost->slave_attach() calls with a scsi_build_commandblocks in the new scsi_slave_attach. This is a patch aginst linux-scsi.bkbits.net/scsi-for-linus-2.5 after applying the last posted hch version of the "Eliminate scsi_host_tmpl_list" patch, it still applies with offset to the current scsi-for-linus-2.5. It also: Will properly call shost->slave_attach after a scsi_unregister_device() followed by a scsi_register_device() - as could happen if you were able to rmmod all upper level drivers and then insmod any of them back (only possible when not booted on scsi). Checks for scsi_build_commandblocks() allocation failures. Sets queue depth even if shost->slave_attach() does not call scsi_adjust_queue_depth. Removes the use of revoke (no drivers are setting it, it was only call via the proc scsi remove-single-device interface). There are at least two problems with sysfs and scsi (one in sysfs, one in scsi, I'll try and post more soon ...) so I could not completey test rmmod of an adapter or upper level driver without leading to an oops or shutdown hang. hosts.c | 5 -- hosts.h | 6 -- osst.c | 9 ++- scsi.c | 118 +++++++++++++++++++++++++++++++-------------------- scsi.h | 2 scsi_mid_low_api.txt | 24 ---------- scsi_scan.c | 9 --- sd.c | 10 +++- sg.c | 10 ++-- sr.c | 7 ++- st.c | 11 +++- 11 files changed, 106 insertions(+), 105 deletions(-) ===== drivers/scsi/hosts.c 1.23 vs edited =====
-
- 05 Nov, 2002 7 commits
-
-
James Bottomley authored
-
James Bottomley authored
-
Christoph Hellwig authored
Now that .init isn't implement anymore we can get rid of it and do some more cleanup in the scsi device template: * remove .blk - unused since 2.5.46 * remove .dev_noticed, only midlayer user is gone together with .init. remaining instance now driver-private * remove .nr_dev and .dev_max - they're purely driver internal and at least in sd and sr they'll be completly gone very soon.
-
Christoph Hellwig authored
Yes, this is the patch every maintainer of a modern HBA waited for the last years </shameless plug>. With all my recent changes there's no more reason to call scsi_register_host except for the intialization it performs to every host found in scsi_register. But a driver can aswell do that at the end of it's per-HBA detection routine (i.e. in ->probe for a modern PCI driver), so export that code as scsi_add_host to drivers. Do the same for the release path (scsi_remove_host). Such a new-style driver needs neither ->detect or ->release and is in theory hotplug-capable (well, once all the races in the scsi midlayer are fixed..)
-
James Bottomley authored
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
-
James Bottomley authored
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
-
Christoph Hellwig authored
Next step of my ->init removal series. sg does a few to much wierd things with it's global array thay I prefer to leave it to Doug to get rid of it (if he wants to), but this patch at least gets rid of sg_init. Move the register_chrdev to init_sg - open properly checks whether the device exists so this doesn't cause any harm. Remove the initial allocation of the device array - the resizing code in sg_attach will properly take care of it when called the first time. Tested with a DVD reader/CD writer combination and ide-scsi.
-
- 04 Nov, 2002 13 commits
-
-
James Bottomley authored
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
-
Christoph Hellwig authored
Similar cleanup to the recent sd patch: allocate the scsi_cd struct in sd_attach instead of needing the global array and sd_init. Tested with a DVD reader/CD write combination and ide-scsi.
-
James Bottomley authored
-
James Bottomley authored
into mulgrave.(none):/home/jejb/BK/scsi-for-linus-2.5
-
Linus Torvalds authored
-
Christoph Hellwig authored
Factor out code calling methods of all device template on a scsi_device out to three helper functions in scsi.c, make scsi_devicelist static to it and add a r/w semaphore to protect it. Make scsi_host_list and scsi_host_hn_list static to hosts.c and remove the never used scsi_host_tmpl_list (we only add to it and remove from it but never traverse it)
-
Christoph Hellwig authored
Since osst is the last driver still implementing ->init and Willem said he's gonna do a major update including a resync with st anyway I think it's okay to put this hack in for now. Instead of ->init beeing directly called from the midlayer osst_attach now calls in in the beginning - it has an internal protection so that the initialization will be called only one anyway.
-
Dominik Brodowski authored
Both the /proc/sys/cpu/ and /proc/cpufreq interface can safely be enabled in the same kernel. This simplifies the transition to the newer interface. Only minor updates are needed in order to allow this to be done.
-
Linus Torvalds authored
-
David Howells authored
Fix: - Makefile using obj-m directly, rather than subsituting the "m" - compiler breakage against older versions of gcc - adds some lacking return statements that gcc didn't catch - removes some 2.4 compatibility stuff - RTT calculation - puts the timeouts in terms of HZ rather than assuming HZ==100
-
Matthew Wilcox authored
A supplement to manfred's patch; remove copy_segments, release_segments and even forget_segments from all architectures (except x86-64 since Andi wants to do that seperately):
-
David S. Miller authored
Did the changes that created this line actually build for anyone? :-)
-
Linus Torvalds authored
mbcache should be too.
-
- 03 Nov, 2002 19 commits
-
-
bk://are.twiddle.net/pci-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Richard Henderson authored
-
bk://are.twiddle.net/axp-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Richard Henderson authored
-
Richard Henderson authored
-
Richard Henderson authored
-
Matthew Dharm authored
This patch changes how media-change is detected to use a mechanism more similar to what 'popular' OSes use. The motive for this change is that more and more emulated-SCSI devices (sbp2, usb-storage, etc) don't support START_STOP unless they need it. Other OSes won't send a START_STOP unless the device reports NOT_READY, indicating that it needs an explicit command to start up. One could argue that these devices are out-of-spec, but they are so common that they basically define the de facto spec. Basically, any device that needs a START_STOP should still get it, but ones that don't need it won't.
-
Manfred Spraul authored
The i386 LDT code had it's own set of arch hooks (??_segments), I've replaced most of them with the mmu context hooks in a previous patch. The attached patch completes that change: replace release_segments with destroy_context. The patch is part of the -ac kernels in 2.4. The patch breaks x86-64, Andi Kleen promised to send you the corresponding s/release_segments/destroy_context/ patch.
-
Sam Ravnborg authored
Cleaning simplified by descending down in aicasm when cleaning. Fixed firmware build, someone made a spelling mistakei (aix -> aic). No longer include Rules.make.
-
Sam Ravnborg authored
Made the *docs targets work after the restructuring of the kbuild files. Fix cleaning up after make htmldocs, there are some directories that needs to be deleted in that case.
-
Dominik Brodowski authored
This patch updates the p4-clockmod.c driver to correctly manage HyperThreading-enabled Pentium IVs as well as those models which do not support HyperThreading - thanks to Venkatesh Pallipadi for explaining cpu_sibling_map to me. Additionally, an EXPORT_SYMBOL was missing. (spotted by Marc-Christian Petersen - thanks!)
-
James Bottomley authored
-
Douglas Gilbert authored
I've been posting recently. This one adds: - slave_attach() and slave_detach() - code clean up looking for a problem ** - more debug code allowing scanning cmd sequence to be seen in the log (when opts=1) ** after several (never the first) sequences of modprobe/rmmod on scsi_debug there is either: - an oops during modprobe when driverfs tries to create a directory - or a WARN_ON() at drivers/base/bus.c:277 during rmmod [examples attached] I'm not sure whether the problem is in scsi_debug, the scsi mid level or in the driverfs code. Grepping indicates that not many people currently utilize per driver parameters with driverfs (i.e. driver_create_file() and driver_remove_file()).
-
Linus Torvalds authored
-
Matthew Wilcox authored
Update to the latest parport_gsc in the PA tree.
-
Matthew Wilcox authored
Some misc updates: - adapt our config.in changes to arch/parisc/Kconfig - general Makefile updaes for the new build system - remove asm-parisc/gsc.h in favour of asm-parisc/io.h - Alan-approved fix for the loff_t problem - Define POLLREMOVE like other architectures. - irq handling updates from Grant Grundler
-
Matthew Wilcox authored
x86 doesn't evaluate the argument to flush_dcache_page so this compilation problem has gone overlooked:
-
Matthew Wilcox authored
SOM is the file format used for HPUX binaries.
-
Matthew Wilcox authored
This huge patch moves a bunch of drivers from arch/parisc/kernel to drivers/parisc and adds some new drivers in drivers/parisc.
-