- 14 Mar, 2003 9 commits
-
-
Douglas Gilbert authored
Changelog: - remove hosts, host_strs and host_hdr from sg's procfs interface ** - add sysfs interface for allow_dio, def_reserved_size and version *** - switch boot time and module parameters to Rusty's moduleparam.h interface. This means, for example, the boot time "sg_def_reserved_size" parameter changes to "sg.def_reserved_size". ** Christoph moved the host listing functionality into a more central sysfs position (i.e. not dependent on sg). However scsi_debug is the only LLD that I can get to post any "host" info under the new arrangement. Should devices, device_strs and device_hdrs also be moved out of sg's procfs interface? *** I find sg's "debug" in its procfs interface very useful for debugging (sg itself amongst other things). However it does not seem suitable for sysfs. Should it move?
-
Randy Dunlap authored
This is a start on reducing the stack usage in qlogicfc.c:: isp2x00_make_portdb(). I think that the stack reduction portion of it is fine, but I'm concerned about the function returning early due to kmalloc() failure, without making the port database. [reduces stack from 0xc38 to 0x34 bytes (P4 UP, gcc 2.96)] Can anyone suggest way(s) to have the isp2x00_make_portdb() function called over and over again until it gets its job done? Or does anyone even still use this driver?
-
Douglas Gilbert authored
Here is a second attempt to patch scsi_debug in 2.5.64 . My reference version was out of sync in my previous posting. Changelog: - add recovered error injection (this is a bit different to the patch proposed by Kurt Garloff) - fix flakiness in scsi_cmnd::result when errors are being injected - fix medium error injection - make "every_nth" writeable in sysfs - small re-arrangement of error flags in "opts" - clean up some of the naming Updated http://www.torque.net/sg/sdebug25.html This patch does not include Mike Anderson's sysfs probe() cleanup. In 2.5.64 scsi error handling is flaky and sysfs is especially flaky in 2.5.64-bk3. I'll send some finding to the list when things stabilize a bit. [For anyone who is bored, try following the tortured sequence of scsi commands generated by the block/sd/mid-level layers in response to a persistent medium error.]
-
Mark Haverkamp authored
This changes the cmd_per_lun element of the aacraid Scsi_Host_Template to 1. The larger number is not needed and exceeds the depth limit for scsi_adjust_queue_depth. Also updated struct initializers.
-
Alex Tomas authored
Hi! Here is new version of the patch. All procfs-related stuff has been removed. One may rescan device size writing something to /sysfs/.../<scsi device>/rescan: root@zefir:~# echo 1 >/sysfs/bus/scsi/devices/0\:0\:1\:0/rescan root@zefir:~# dmesg scsi0:A:1:0: Tagged Queuing enabled. Depth 64 scsi: host 0 channel 0 id 1 lun16384 has a LUN larger than allowed by the host adapter SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB) SCSI device sda: drive cache: write through sda: unknown partition table Attached scsi disk sda at scsi0, channel 0, id 1, lun 0 SCSI device sda: 125829120 512-byte hdwr sectors (64425 MB) root@zefir:~#
-
Willem Riede authored
On 2003.03.11 14:13 Christoph Hellwig wrote: > > --- 1.39/drivers/scsi/osst.c Sun Feb 2 17:50:23 2003 > +++ edited/drivers/scsi/osst.c Mon Mar 10 14:35:46 2003 > @@ -777,7 +777,7 @@ > #define OSST_POLL_PER_SEC 10 > static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to) > { > - long startwait = jiffies; > + unsigned long startwait = jiffies; > char * name = tape_name(STp); > #if DEBUG > char notyetprinted = 1; > @@ -1288,7 +1288,7 @@ > int logical_blk_num = ntohl(STp->buffer->aux->logical_blk_num) > - (nframes + pending - 1) * blks_per_frame; > char * name = tape_name(STp); > - long startwait = jiffies; > + unsigned long startwait = jiffies; > #if DEBUG > int dbg = debugging; > #endif > @@ -1477,7 +1477,7 @@ > int expected = 0; > int attempts = 1000 / skip; > int flag = 1; > - long startwait = jiffies; > + unsigned long startwait = jiffies; > #if DEBUG > int dbg = debugging; > #endif > - There are five functions that use jiffies. You fixed three of them. If this change is done (and that's fine with me) it should be done with this patch:
-
Luben Tuikov authored
The following patch gets rid of softscsi_data struct and array for the more manageable static struct list_head done_q[NR_CPUS] __cacheline_aligned; Thus, scsi_cmnd::bh_next is eliminated, since it was used only in the scsi softirq processing code. The comments are updated. 80 chars per line for the affected functions: scsi_done() and scsi_softirq(). Eliminated is the double loop in scsi_softirq() -- this is better handled in do_softirq() and gives the system a ``breather''. (There are pros and cons for either side and if you guys think that it was better with the double loop, I'll change it and resubmit the patch.)
-
Christoph Hellwig authored
If the sdev allocation fails and q is non-null we could dereference sdev->request_queue. While at it reformat the function to use goto-based cleanup - that's much easier to parse.
-
Andrew Morton authored
Compile warnings are useful...
-
- 13 Mar, 2003 1 commit
-
-
Jens Axboe authored
-
- 12 Mar, 2003 1 commit
-
-
Linus Torvalds authored
set. A few versions of gcc-2.96 generate seriously incorrect code.
-
- 11 Mar, 2003 29 commits
-
-
Gerd Knorr authored
This patch creates a new include directory include/media, populates it with a few files header files and fixups the affected drivers to compile with the new directory layout. The directory is intented to be used for (kernel-internal) header files of the media drivers (which are sitting below drivers/media). For now the video-buf.h (mm helper), tuner.h (tv/radio tuner) and audiochip.h (tv sound decoder drivers) header files are moved. Some more header files from the dvb folks will likely follow.
-
Gerd Knorr authored
This patch deletes the MIN/MAX macros from audiochip.h and fixes all users of these macros to use the kernels min/max macros instead.
-
Andrew Morton authored
Patch from Neil Brown <neilb@cse.unsw.edu.au> Allow auto-unplugging to work for devices that do it themselves. Auto-unplugging - and blk_unplug_work in particular - assumes that the device uses "generic_unplug_device" for unplugging, but some devices don't. md crashes. So blk_unplug_work should use ->unplug_fn
-
Steven Cole authored
This patch fixes spelling errors in the Documentation directory and was extensively reviewed by the following people: Dan Kegel, David Woodhouse, Joe Perches, Jared Daniel J. Smith, Michael Hayes, and Steven Cole
-
bk://kernel.bkbits.net/davem/net-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
bk://kernel.bkbits.net/davem/sparc-2.5Linus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Joshua Uziel authored
-
Joshua Uziel authored
-
David S. Miller authored
into kernel.bkbits.net:/home/davem/net-2.5
-
Art Haas authored
-
Stephen Rothwell authored
-
David S. Miller authored
into nuts.ninka.net:/home/davem/src/BK/net-2.5
-
bk://ldm.bkbits.net/linux-2.5-coreLinus Torvalds authored
into home.transmeta.com:/home/torvalds/v2.5/linux
-
Patrick Mochel authored
From Ben Collins Used as manual trigger for device/driver binding, so drivers can claim devices that are present but failed to be bound. In case of ieee1394, this can happen if two computers are attached to a device - the second one won't be able to claim it until the first detaches. Changed device_attach() to return 1 when a driver was bound to a device. Makes it so bus_rescan_devices() can return the number of devices attached. Tested this with ieee1394 over a bus reset and it worked as expected.
-
Patrick Mochel authored
- Don't d_delete() files when removing a directory - they must still be hashed when dput() reaps them, and it will __d_drop() them anyway. - Don't d_invalidate() the directory on removal. - do simple_rmdir() after d_delete() on directory. - Remove extra dput(), which was causing refcount to go negative, causing an oops when someone tried to create the directory again. - Make sure we don't d_delete() or do extra dput() on file when updating, either.
-
Andries E. Brouwer authored
-
Dave Kleikamp authored
into shaggy.austin.ibm.com:/shaggy/bk/jfs-2.5
-
Christoph Hellwig authored
The old adap_lock and driver_lock could deadlock and there was a bunch of stuff that was horribly racy. The new locking scheme is from lm_sensors CVS but I had to fix quite a few bugs to make this work.
-
Christoph Hellwig authored
This one is from lm_sensors CVS and mostly cosmetic changes. I it up a bit to compile properly under latest 2.5.
-
Christoph Hellwig authored
another bunch of IDs appeared in lm_sensors CVS lately..
-
Christoph Hellwig authored
This somehow got lost in the uClinux merge.
-
Christoph Hellwig authored
It's the _device_ filesystem, so regular files are grossly misplaced here. Fortauntely only one driver actually tries to use it (microcode) and it's works fine with a regular miscdevice as well.
-
Christoph Hellwig authored
Sorry, the devs_only() patch accidentally included the devfs-portion of the DEVFS_FL_AUTO_DEVNUM patch. This patch contains the remaining parts.
-
Christoph Hellwig authored
The new slab poisoning code broke kmem_cache_size(), it now returns a too large size as the poisoning area after the object is includes. XFS's kmem_zone_zalloc thus overwrites exactly that area and triggers the new checks everytime such an object is freed again. I don't recommend using XFS on BK-current without this patch applied :)
-
Jens Axboe authored
-
Greg Ungerer authored
This patches fixes the m68knommu 68360 serial driver to use the work_struct, not the obsoleted workqueue.
-
Greg Ungerer authored
This patch moves common ColdFire vector and timer procesing code from the local per-processor config.c for the 5206 ColdFire sub-architecture. All ColdFire CPU's have the same timer and basic vector setup, seems crazy to repeat this code for each of 6 ColdFire CPU varients.
-
Greg Ungerer authored
This patch moves common ColdFire vector and timer procesing code from the local per-processor config.c for the 5206e ColdFire sub-architecture. All ColdFire CPU's have the same timer and basic vector setup, seems crazy to repeat this code for each of 6 ColdFire CPU varients. This patch also removes the reset button support, this is now moved to a proper device driver, where it belongs.
-
Greg Ungerer authored
This patch moves common ColdFire vector and timer procesing code from the local per-processor config.c for the 5249 ColdFire sub-architecture. All ColdFire CPU's have the same timer and basic vector setup, seems crazy to repeat this code for each of 6 ColdFire CPU varients.
-