]> git.neil.brown.name Git - history.git/log
history.git
23 years agoMerge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
James Bottomley [Sun, 16 Mar 2003 04:39:57 +0000 (22:39 -0600)]
Merge raven.il.steeleye.com:/home/jejb/BK/scsi-misc-2.5
into raven.il.steeleye.com:/home/jejb/BK/scsi-for-linus-2.5

23 years agorevert fs/block_dev.c change for hot resize: breaks initrd
James Bottomley [Sun, 16 Mar 2003 04:36:09 +0000 (22:36 -0600)]
revert fs/block_dev.c change for hot resize: breaks initrd

23 years agoscsi_debug version 1.68 mark III
Douglas Gilbert [Sun, 16 Mar 2003 03:05:30 +0000 (21:05 -0600)]
scsi_debug version 1.68 mark III

Changelog since version 1.68 mark II:
  - merge Mike Anderson's probe() cleanup
     - num_devs is now "per host"
     - num_devs is sysfs writeable
  - add slave_alloc skeleton code

So to simulate 154 disks (for example) one might use:
  # modprobe scsi_debug add_host=11 num_devs=14

With max_luns at its default value of 2, 14 is the
maximum number of devices per host scsi_debug will
respond to (i.e. 7 targets, each with 2 lus).

Documentation updated at:
http://www.torque.net/sg/sdebug25.html

23 years ago[PATCH] typos only
Randy Dunlap [Sat, 15 Mar 2003 09:19:40 +0000 (01:19 -0800)]
[PATCH] typos only

No code changes; still builds OK.

23 years ago[PATCH] update filesystems config. menu
Randy Dunlap [Sat, 15 Mar 2003 09:19:32 +0000 (01:19 -0800)]
[PATCH] update filesystems config. menu

This is Robert PJ Day's patch that updates the filesystems
config menu.  It had become a bit ad hoc (jumbled:) and this
patch attempts to arrange it more logically.

23 years ago[PATCH] gtk front end
Roman Zippel [Sat, 15 Mar 2003 09:17:45 +0000 (01:17 -0800)]
[PATCH] gtk front end

This adds the gtk front end by Romain LiĆ©vin <roms@tilp.info>

23 years ago[PATCH] add menuconfig support to the front ends
Roman Zippel [Sat, 15 Mar 2003 09:17:30 +0000 (01:17 -0800)]
[PATCH] add menuconfig support to the front ends

This adds the support for the menuconfig to the front ends.
qconf also has now an ".." entry to make it more obvious
how to get to a parent menu.

23 years ago[PATCH] add menuconfig support
Roman Zippel [Sat, 15 Mar 2003 09:17:18 +0000 (01:17 -0800)]
[PATCH] add menuconfig support

This adds the support for the menuconfig keyword, which allows to define
a config symbol and a submenu with a single step, e.g. instead of

menu "SCSI device support"

config SCSI
tristate "SCSI device support"

this is now enough:

menuconfig SCSI
tristate "SCSI device support"

23 years ago[PATCH] menu structure fix
Roman Zippel [Sat, 15 Mar 2003 09:17:12 +0000 (01:17 -0800)]
[PATCH] menu structure fix

A menu entry was possibly inserted to high in the menu hierarchie if
the previous entry was a derived config symbol.

23 years ago[PATCH] restore old config behaviour for dependencies on 'm'
Roman Zippel [Sat, 15 Mar 2003 09:17:04 +0000 (01:17 -0800)]
[PATCH] restore old config behaviour for dependencies on 'm'

This restores the old config behaviour for dependencies on 'm',
such entries are only activ if CONFIG_MODULES is enabled as well.

23 years agoMerge bk://bk.arm.linux.org.uk
Linus Torvalds [Sat, 15 Mar 2003 09:15:11 +0000 (01:15 -0800)]
Merge bk://bk.arm.linux.org.uk
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years ago[TTY] Register tty devclass before use.
Russell King [Sat, 15 Mar 2003 10:37:42 +0000 (10:37 +0000)]
[TTY] Register tty devclass before use.

Register the tty devclass with sysfs before tty drivers initialise -
sysfs requires structures to be registered before use.  This is
required for the previous serial csets, as well as any drivers which
are initialising using __initcall() or module_init().

23 years agoMerge http://ppc.bkbits.net/for-linus-ppc64
Linus Torvalds [Sat, 15 Mar 2003 09:11:44 +0000 (01:11 -0800)]
Merge http://ppc.bkbits.net/for-linus-ppc64
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc64
Anton Blanchard [Sun, 16 Mar 2003 16:41:23 +0000 (03:41 +1100)]
Merge bk://ppc.bkbits.net/for-linus-ppc64
into samba.org:/home/anton/ppc64/for-linus-ppc64

23 years agoMerge samba.org:/scratch/anton/sfr
Anton Blanchard [Sun, 16 Mar 2003 16:26:01 +0000 (03:26 +1100)]
Merge samba.org:/scratch/anton/sfr
into samba.org:/scratch/anton/linux-2.5_ppc64

23 years agoMerge bk://ppc.bkbits.net/for-linus-ppc64
Anton Blanchard [Sun, 16 Mar 2003 16:23:37 +0000 (03:23 +1100)]
Merge bk://ppc.bkbits.net/for-linus-ppc64
into samba.org:/home/anton/ppc64/for-linus-ppc64

23 years agoppc64: remove -finline-limit now that we force inlines
Anton Blanchard [Sun, 16 Mar 2003 16:18:15 +0000 (03:18 +1100)]
ppc64: remove -finline-limit now that we force inlines

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Sun, 16 Mar 2003 16:09:46 +0000 (03:09 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

23 years agoMerge bk://linux-dj.bkbits.net/cpufreq
Linus Torvalds [Sat, 15 Mar 2003 03:29:12 +0000 (19:29 -0800)]
Merge bk://linux-dj.bkbits.net/cpufreq
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoppc64: compat_sys_fcntl from Stephen Rothwell, remove socketcall emulation
Anton Blanchard [Sat, 15 Mar 2003 03:26:35 +0000 (14:26 +1100)]
ppc64: compat_sys_fcntl from Stephen Rothwell, remove socketcall emulation

23 years agoRevert duplicate <linux/stddef.h> addition.
Linus Torvalds [Sat, 15 Mar 2003 01:52:27 +0000 (17:52 -0800)]
Revert duplicate <linux/stddef.h> addition.

23 years agoPPC32: Don't reregister existing /proc/irq entries.
Paul Mackerras [Sun, 16 Mar 2003 09:37:36 +0000 (20:37 +1100)]
PPC32: Don't reregister existing /proc/irq entries.

23 years agoPPC32: Make sure interrupts are disabled in IPI handlers.
Paul Mackerras [Sun, 16 Mar 2003 09:36:04 +0000 (20:36 +1100)]
PPC32: Make sure interrupts are disabled in IPI handlers.

23 years agoPPC32: Set max_pfn correctly.
Paul Mackerras [Sun, 16 Mar 2003 09:34:55 +0000 (20:34 +1100)]
PPC32: Set max_pfn correctly.

23 years agoPPC32: Better check for when we should expand the stack.
Paul Mackerras [Sun, 16 Mar 2003 09:33:18 +0000 (20:33 +1100)]
PPC32: Better check for when we should expand the stack.

23 years agoMerge bk://stop.crashing.org/linux-2.5-misc
Paul Mackerras [Sun, 16 Mar 2003 06:27:28 +0000 (17:27 +1100)]
Merge bk://stop.crashing.org/linux-2.5-misc
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sun, 16 Mar 2003 05:15:27 +0000 (16:15 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge samba.org:/home/paulus/kernel/linux-2.5
Paul Mackerras [Sat, 15 Mar 2003 07:25:40 +0000 (18:25 +1100)]
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Fri, 14 Mar 2003 23:47:32 +0000 (10:47 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

23 years ago[PATCH] sg version 3.5.28 for lk 2.5.64
Douglas Gilbert [Fri, 14 Mar 2003 12:56:34 +0000 (06:56 -0600)]
[PATCH] sg version 3.5.28 for lk 2.5.64

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?

23 years ago[PATCH] reduce stack in qlogicfc.c
Randy Dunlap [Fri, 14 Mar 2003 12:54:22 +0000 (06:54 -0600)]
[PATCH] reduce stack in qlogicfc.c

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?

23 years ago[PATCH] scsi_debug in 2.5.64
Douglas Gilbert [Fri, 14 Mar 2003 12:48:23 +0000 (06:48 -0600)]
[PATCH] scsi_debug in 2.5.64

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.]

23 years ago[PATCH] aacraid driver for 2.5
Mark Haverkamp [Fri, 14 Mar 2003 12:45:16 +0000 (06:45 -0600)]
[PATCH] aacraid driver for 2.5

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.

23 years ago[PATCH] Re: hot scsi disk resize
Alex Tomas [Fri, 14 Mar 2003 12:43:43 +0000 (06:43 -0600)]
[PATCH] Re: hot scsi disk resize

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:~#

23 years agofix jiffies compare warning in osst
Willem Riede [Fri, 14 Mar 2003 12:41:24 +0000 (06:41 -0600)]
fix jiffies compare warning in osst

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:

23 years agoscsi_softirq queue is now list_head, eliminate bh_next
Luben Tuikov [Fri, 14 Mar 2003 12:35:45 +0000 (06:35 -0600)]
scsi_softirq queue is now list_head, eliminate bh_next

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.)

23 years ago[PATCH] fix possible NULL pointer dereference in scsi_scan.c
Christoph Hellwig [Fri, 14 Mar 2003 12:11:09 +0000 (06:11 -0600)]
[PATCH] fix possible NULL pointer dereference in scsi_scan.c

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.

23 years ago[PATCH] remove scsi_eh_retry_cmd
Andrew Morton [Fri, 14 Mar 2003 12:10:37 +0000 (06:10 -0600)]
[PATCH] remove scsi_eh_retry_cmd

Compile warnings are useful...

23 years agoMerge
Linus Torvalds [Fri, 14 Mar 2003 11:52:58 +0000 (03:52 -0800)]
Merge

23 years ago[PATCH] switch over /proc/bus/i2c to seq_file interface
Christoph Hellwig [Fri, 14 Mar 2003 11:35:40 +0000 (03:35 -0800)]
[PATCH] switch over /proc/bus/i2c to seq_file interface

23 years ago[PATCH] fix up the i2c locking changes
Christoph Hellwig [Fri, 14 Mar 2003 11:35:33 +0000 (03:35 -0800)]
[PATCH] fix up the i2c locking changes

There was one place where we missed an unlock, in addition some more
code cleanups.

23 years ago[PATCH] fix OOPS in i2c sysctl registration
Christoph Hellwig [Fri, 14 Mar 2003 11:35:27 +0000 (03:35 -0800)]
[PATCH] fix OOPS in i2c sysctl registration

I had to rewrite the code from scratch to understand what it does,
but at least it doesn't OOPS anymore on boot..

23 years agoMerge bk://kernel.bkbits.net/jgarzik/random-2.5
Linus Torvalds [Fri, 14 Mar 2003 11:32:59 +0000 (03:32 -0800)]
Merge bk://kernel.bkbits.net/jgarzik/random-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoMerge bk://thebsh.namesys.com/bk/reiser3-linux-2.5-relocation-fix
Linus Torvalds [Fri, 14 Mar 2003 10:14:19 +0000 (02:14 -0800)]
Merge bk://thebsh.namesys.com/bk/reiser3-linux-2.5-relocation-fix
into home.transmeta.com:/home/torvalds/v2.5/linux

23 years agoreiserfs: Correctly free all the allocated memory if open of the journal failed.
Oleg Drokin [Fri, 14 Mar 2003 22:17:32 +0000 (01:17 +0300)]
reiserfs: Correctly free all the allocated memory if open of the journal failed.
  Also added \n to some error messages.

23 years ago[PATCH] export platform_bus_type
Jean Tourrilhes [Fri, 14 Mar 2003 10:13:27 +0000 (02:13 -0800)]
[PATCH] export platform_bus_type

23 years ago[PATCH] kNFSd: Introduce CROSSMNT flag for knfsd
Neil Brown [Fri, 14 Mar 2003 10:12:01 +0000 (02:12 -0800)]
[PATCH] kNFSd: Introduce CROSSMNT flag for knfsd

Now that we have working up-calls to userspace,
CROSSMNT makes sense.
If CROSSMNT is set for an export, and we too a
LOOKUP which crosses a mountpoint, we initiate an
upcall to find out if and how that filesystem
is exported.

23 years ago[PATCH] kNFSd: Rename NFSEXP_CROSSMNT to NFSEXP_NOHIDE
Neil Brown [Fri, 14 Mar 2003 10:11:55 +0000 (02:11 -0800)]
[PATCH] kNFSd: Rename NFSEXP_CROSSMNT to NFSEXP_NOHIDE

becase nohide is the user-space visible name
for the flag, and we are about to define a real
CROSSMNT.

23 years ago[PATCH] kNFSd: Assort fixes to nfsd auth cache stuff.
Neil Brown [Fri, 14 Mar 2003 10:11:49 +0000 (02:11 -0800)]
[PATCH] kNFSd: Assort fixes to nfsd auth cache stuff.

1/ call cache_fresh when replacing a cache entry (instead of only
  when updating) so that up-calls waiting on the replaced entry continue.

2/ in svcauth_unix_accept, don't put the verifier until all tests have
   succeeded.

3/ calculate size of request-being-deferred correctly.

23 years ago[PATCH] kNFSd: Fix deadlock problem in lockd.
Neil Brown [Fri, 14 Mar 2003 10:11:42 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix deadlock problem in lockd.

nlmsvc_lock calls nlmsvc_create_block with file->f_sema
held.
nlmsvc_create_block calls nlmclnt_lookup_host which might
call nlm_gc_hosts which might, eventually, try to claim
file->f_sema for the same file -> deadlock.

nlmsvc_create_block does not need any protection under
any lock as lockd is single-threaded and _create_block
only plays with internal data structures.

So we release the f_sema before calling in, and make sure
it gets claimed again afterwards.

23 years ago[PATCH] kNFSd: Fix race in svcsock.c
Neil Brown [Fri, 14 Mar 2003 10:11:35 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix race in svcsock.c

From: Trond Myklebust <trond.myklebust@fys.uio.no>

knfsd needs to disable soft interrupts when calling
csum_partial_copy_to_xdr().

At the moment there's a nasty conflict between the RPC server and
client. The problem arises when you get to xdr_partial_copy_from_skb()
(and the kmap_atomic()); the RPC client can end up calling the same
function from a ->data_ready() soft interrupt, and corrupt any data
the knfsd process may have copied.

23 years ago[PATCH] kNFSd: Fix exit-without-free bug in nfsd
Neil Brown [Fri, 14 Mar 2003 10:11:30 +0000 (02:11 -0800)]
[PATCH] kNFSd: Fix exit-without-free bug in nfsd

23 years ago[PATCH] md: Add new superblock format for md
Neil Brown [Fri, 14 Mar 2003 10:09:26 +0000 (02:09 -0800)]
[PATCH] md: Add new superblock format for md

Superblock format '1' resolves a number of issues with
superblock format '0'.
It is more dense and can support many more sub-devices.
It does not contains un-needed redundancy.
It adds a few new useful fields

23 years ago[PATCH] md: Allow md to select between superblock formats
Neil Brown [Fri, 14 Mar 2003 10:09:20 +0000 (02:09 -0800)]
[PATCH] md: Allow md to select between superblock formats

The code to understand a specific superblock format is
already highly localised in md.  This patch defines a
user-space interface for selecting which superblock format
to use, and obeys that selection.

Md currently has a concept of 3 version numbers:
 A major version number
 A minor version number
 A patch version number

There historically seems to be some confusion about whether
these refer to a version of the superblock layout,
or a version of the software.

We will now define that:
   the "major_version" defines the superblock handler.
      '0' is the current superblock format.  All new formats
          will need new numbers.
   the "minor_version" can specify minor variations in the
      superblock, such as different location on the device
   the "patch_version" will be used to indicate new extenstions
      to the software.. patch_version=1 will mean multiple superblock
      support.

A superblock version number is selected by specifing major_version
in SET_ARRAY_INFO ioctl.

This patch:
  Updates Documentation/md.txt with details of new interface.
  Generalises desc_nr handling and makes sure that an array never
  has two devices with the same desc_nr.
  makes sure mddev->major_version is always valid and is 0 by default.
  uses mddev->major_version to select superblock handlers.
  Modifies set_array_info to just record version number if raid_disks==0
  Makes sure max_disks is always set correctly.
  Determines device size when reading superblock, or a hot-add/add-new.

23 years ago[PATCH] md: Allow components of MD raid array to have data start at offset from start...
Neil Brown [Fri, 14 Mar 2003 10:09:13 +0000 (02:09 -0800)]
[PATCH] md: Allow components of MD raid array to have data start at offset from start of device.

Normally the data stored on a component of a RAID array is stored
from the start of the device.  This patch allows a per-device
data_offset so the data can start elsewhere. This will allow
RAID arrays where the metadata is at the head of the device
rather than the tail.

23 years ago[PATCH] md: Fix bad interaction between sync checkpointing and recovery
Neil Brown [Fri, 14 Mar 2003 10:09:06 +0000 (02:09 -0800)]
[PATCH] md: Fix bad interaction between sync checkpointing and recovery

Md devices (raid1/raid5) can resync or recover.
There are similar but importantly different.
resync happens after an unclean shutdown
recovery happens when a failed drive is being replaced by a hot spare.

The sync-checkpoint code confused the two somewhat and this causes
problems.

This patch makes sure "recovery_cp" only relates to resync,
not recovery.
It also fixes a small problem with recording spares in
the superblock.

23 years ago[PATCH] md: Fulltime delayed 'safe_mode' for md
Neil Brown [Fri, 14 Mar 2003 10:09:01 +0000 (02:09 -0800)]
[PATCH] md: Fulltime delayed 'safe_mode' for md

From: Angus Sawyer <angus.sawyer@dsl.pipex.com>

If there are no writes for 20 milliseconds, write out superblock
to mark array as clean.  Write out superblock with
dirty flag before allowing any further write to succeed.

If an md thread gets signaled with SIGKILL, reduce the
delay to 0.

Also tidy up some printk's and make sure writing the
superblock isn't noisy.

23 years ago[PATCH] md: Remove md_recoveryd thread for md
Neil Brown [Fri, 14 Mar 2003 10:08:54 +0000 (02:08 -0800)]
[PATCH] md: Remove md_recoveryd thread for md

The md_recoveryd thread is responsible for initiating and cleaning
up resync threads.
This job can be equally well done by the per-array threads
for those arrays which might need it.

So the mdrecoveryd thread is gone and the core code that
it ran is now run by raid5d, raid1d or multipathd.

We add an MD_RECOVERY_NEEDED flag so those daemon don't have
to bother trying to lock the md array unless it is likely
that something needs to be done.

Also modify the names of all threads to have the number of
md device.

23 years ago[PATCH] md: Include asm-i386/387.h in asm-i386/xor.h
Neil Brown [Fri, 14 Mar 2003 10:08:47 +0000 (02:08 -0800)]
[PATCH] md: Include asm-i386/387.h in asm-i386/xor.h

It is needed for kernel_fpu_*

23 years ago[PATCH] md: Tidy up recovery_running flags in md
Neil Brown [Fri, 14 Mar 2003 10:08:40 +0000 (02:08 -0800)]
[PATCH] md: Tidy up recovery_running flags in md

Md uses ->recovery_running and ->recovery_err to keep track of the
status or recovery.  This is rather ad hoc and race prone.

This patch changes it to ->recovery which has bit flags for various
states.

23 years ago[PATCH] md: Opencode flush_curr_signals in md.c
Neil Brown [Fri, 14 Mar 2003 10:08:35 +0000 (02:08 -0800)]
[PATCH] md: Opencode flush_curr_signals in md.c

It is (now) too trivial to even have an inline.

23 years ago[PATCH] md: C99 initiailzers for xor.h
Neil Brown [Fri, 14 Mar 2003 10:08:28 +0000 (02:08 -0800)]
[PATCH] md: C99 initiailzers for xor.h

From: Art Haas <ahaas@airmail.net>

This patch converts the file to use C99 initializers.

23 years ago[PATCH] md: Convert /proc/mdstat to use seq_file
Neil Brown [Fri, 14 Mar 2003 10:08:21 +0000 (02:08 -0800)]
[PATCH] md: Convert /proc/mdstat to use seq_file

From: Angus Sawyer <angus.sawyer@dsl.pipex.com>

Mainly straightforward convert of sprintf -> seq_printf.  seq_start and
seq_next modelled on /proc/partitions.  locking/ref counting as for
ITERATE_MDDEV.

pos == 0 -> header
pos == n -> nth mddev
pos == 0x10000 -> tail

23 years ago[PATCH] md: Missing mddev_put in md resync code
Neil Brown [Fri, 14 Mar 2003 10:08:13 +0000 (02:08 -0800)]
[PATCH] md: Missing mddev_put in md resync code

Whenever a ITERATE_MDDEV loop is exitted abnormally
we need to mddev_put the current mddev.  There was
one point in md_do_sync where we didn't so use counts
became wrong.

23 years agoppc64: add/remove config.h where necessary
Anton Blanchard [Thu, 13 Mar 2003 21:19:27 +0000 (08:19 +1100)]
ppc64: add/remove config.h where necessary

23 years ago[hw_random] fixes and cleanups
Jeff Garzik [Thu, 13 Mar 2003 13:51:25 +0000 (08:51 -0500)]
[hw_random] fixes and cleanups

* s/Via/VIA/
* allow multiple simultaneous open(2)s of the chrdev.  This allows
us to eliminate some code, without modifying the core code (rng_dev_read)
at all.
* s/__exit// in ->cleanup ops, to eliminate link error

23 years ago[hw_random] add support for VIA Nehemiah RNG ("xstore" instruction)
Jeff Garzik [Thu, 13 Mar 2003 13:48:48 +0000 (08:48 -0500)]
[hw_random] add support for VIA Nehemiah RNG ("xstore" instruction)

23 years ago[ia32] cpu capabilities cleanups and additions
Jeff Garzik [Thu, 13 Mar 2003 13:47:27 +0000 (08:47 -0500)]
[ia32] cpu capabilities cleanups and additions

* Add support for new Centaur(VIA) and Intel cpuid feature bits,
  expanding the x86_capability array by two.
* (cleanup) Move cpu setup for newer Via C3 cpus into its own
  function, init_c3()
* Add support for RNG control msr on VIA Nehemiah
* export X86_FEATURE_XSTORE and cpu_has_xstore macros so that
  kernel code may easily test for cpu support of the new
  "xstore" instruction.

23 years ago[hw_random] update amd768_rng driver to be modular; add Intel support
Jeff Garzik [Thu, 13 Mar 2003 13:24:13 +0000 (08:24 -0500)]
[hw_random] update amd768_rng driver to be modular; add Intel support

Take Alan's amd768_rng driver, recently renamed to hw_random.c,
and convert it's very-simple structure to support multiple
types of hardware RNG.  Integrate Intel i8xx (ICH) RNG support.

23 years ago[hw_random] shuffle files in preparation for hw_random driver update
Jeff Garzik [Thu, 13 Mar 2003 13:20:33 +0000 (08:20 -0500)]
[hw_random] shuffle files in preparation for hw_random driver update

Delete drivers/char/i810_rng.c, superceded.
Rename Doc/i810_rng.txt to Doc/hw_random.txt.
Rename drv/char/amd768_rng.c to drv/char/hw_random.c.

23 years agoPPC32: Add a thread-pointer argument to the clone syscall, make a prepare_to_copy().
Paul Mackerras [Thu, 13 Mar 2003 09:28:56 +0000 (20:28 +1100)]
PPC32: Add a thread-pointer argument to the clone syscall, make a prepare_to_copy().

The thread-pointer argument gets copied to R2 in the child in copy_thread() if
the CLONE_SETTLS flag is set.  Adding a prepare_to_copy simplifies the copy_thread
logic since we don't have to do the extra copy of fpu/altivec state to the child.

23 years agoi2c: add driver model support to i2c adapter drivers
Greg Kroah-Hartman [Thu, 13 Mar 2003 08:39:40 +0000 (00:39 -0800)]
i2c: add driver model support to i2c adapter drivers

23 years agodriver core: Export the legacy_bus structure for drivers to use.
Greg Kroah-Hartman [Thu, 13 Mar 2003 08:37:27 +0000 (00:37 -0800)]
driver core: Export the legacy_bus structure for drivers to use.

23 years ago[PATCH] remove redundant local_irq_disable in bio_kmap_irq()
Jens Axboe [Thu, 13 Mar 2003 07:34:26 +0000 (23:34 -0800)]
[PATCH] remove redundant local_irq_disable in bio_kmap_irq()

23 years agoi2c: add i2c sysfs bus support.
Greg Kroah-Hartman [Thu, 13 Mar 2003 04:26:39 +0000 (20:26 -0800)]
i2c: add i2c sysfs bus support.

23 years agoi2c: i2c-piix4.c: Clean up the ibm dma scan logic
Greg Kroah-Hartman [Thu, 13 Mar 2003 04:16:52 +0000 (20:16 -0800)]
i2c: i2c-piix4.c: Clean up the ibm dma scan logic

Also export the is_unsafe_smbus variable, which is needed.

23 years agoi2c: get i2c-piix4 driver to actually bind to a PCI device.
Greg Kroah-Hartman [Thu, 13 Mar 2003 03:59:13 +0000 (19:59 -0800)]
i2c: get i2c-piix4 driver to actually bind to a PCI device.

23 years agoi2c: add bus driver for Intel PIIX4 devices
Greg Kroah-Hartman [Thu, 13 Mar 2003 03:52:26 +0000 (19:52 -0800)]
i2c: add bus driver for Intel PIIX4 devices

This is from the i2c CVS tree.

23 years agoi2c: get i2c-i801 driver to actually bind to a PCI device.
Greg Kroah-Hartman [Thu, 13 Mar 2003 03:38:03 +0000 (19:38 -0800)]
i2c: get i2c-i801 driver to actually bind to a PCI device.

23 years agoi2c: add bus driver for Intel 801 devices
Greg Kroah-Hartman [Thu, 13 Mar 2003 03:15:15 +0000 (19:15 -0800)]
i2c: add bus driver for Intel 801 devices

This is from the i2c CVS tree.

23 years agoi2c: get i2c-ali15x3 driver to actually bind to a PCI device.
Greg Kroah-Hartman [Thu, 13 Mar 2003 02:50:41 +0000 (18:50 -0800)]
i2c: get i2c-ali15x3 driver to actually bind to a PCI device.

23 years agoi2c: add bus driver for ALI15x3 devices
Greg Kroah-Hartman [Thu, 13 Mar 2003 02:31:07 +0000 (18:31 -0800)]
i2c: add bus driver for ALI15x3 devices

This is from the i2c CVS tree.

23 years agoMerge samba.org:/scratch/anton/linux-2.5
Anton Blanchard [Wed, 12 Mar 2003 15:19:42 +0000 (02:19 +1100)]
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/sfr

23 years ago[SERIAL] Only update the console termios cflag once
Russell King [Wed, 12 Mar 2003 10:00:49 +0000 (10:00 +0000)]
[SERIAL] Only update the console termios cflag once

23 years ago[SERIAL] Add Xircom RBM56G PCI ID
Russell King [Wed, 12 Mar 2003 09:49:04 +0000 (09:49 +0000)]
[SERIAL] Add Xircom RBM56G PCI ID

23 years agoPPC32: Replace 2 inline functions with their normal macro equivalents
Tom Rini [Wed, 12 Mar 2003 05:53:09 +0000 (22:53 -0700)]
PPC32: Replace 2 inline functions with their normal macro equivalents

23 years agoPPC32: Fix a problem with 'next' and 'step' type KGDB commands.
Mark A. Greer [Wed, 12 Mar 2003 05:48:12 +0000 (22:48 -0700)]
PPC32: Fix a problem with 'next' and 'step' type KGDB commands.

23 years agoError out for the case of a gcc-2.96 compiler with CONFIG_FRAME_POINTER
Linus Torvalds [Wed, 12 Mar 2003 01:13:31 +0000 (17:13 -0800)]
Error out for the case of a gcc-2.96 compiler with CONFIG_FRAME_POINTER
set. A few versions of gcc-2.96 generate seriously incorrect code.

23 years ago[PATCH] v4l: create include/media
Gerd Knorr [Tue, 11 Mar 2003 23:25:48 +0000 (15:25 -0800)]
[PATCH] v4l: create include/media

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.

23 years ago[PATCH] v4l: crunch MIN/MAX macros.
Gerd Knorr [Tue, 11 Mar 2003 23:23:15 +0000 (15:23 -0800)]
[PATCH] v4l: crunch MIN/MAX macros.

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.

23 years ago[CPUFREQ] Drop FSB scaling from VIA longhaul driver.
Dave Jones [Tue, 11 Mar 2003 23:21:03 +0000 (22:21 -0100)]
[CPUFREQ] Drop FSB scaling from VIA longhaul driver.
This was incomplete, and never worked 100% on every system, and is
better off dead than half-baked, as it makes the driver a lot simpler,
and removes the possibility of someone being confused why it doesn't
work on their particular hardware.

23 years ago[CPUFREQ] fix signed comparison warnings for longhaul
Dave Jones [Tue, 11 Mar 2003 22:59:17 +0000 (21:59 -0100)]
[CPUFREQ] fix signed comparison warnings for longhaul

23 years ago[CPUFREQ] Fix signed comparison warning in powernow-k7
Dave Jones [Tue, 11 Mar 2003 22:54:58 +0000 (21:54 -0100)]
[CPUFREQ] Fix signed comparison warning in powernow-k7

23 years ago[CPUFREQ] powernow_decode_bios can be static
Dave Jones [Tue, 11 Mar 2003 22:45:12 +0000 (21:45 -0100)]
[CPUFREQ] powernow_decode_bios can be static

23 years ago[CPUFREQ] Fix formatting of 'nothing' output.
Dave Jones [Tue, 11 Mar 2003 22:36:56 +0000 (21:36 -0100)]
[CPUFREQ] Fix formatting of 'nothing' output.

23 years ago[SERIAL] Add PCI serial power management support.
Russell King [Tue, 11 Mar 2003 22:24:53 +0000 (22:24 +0000)]
[SERIAL] Add PCI serial power management support.

23 years ago[CPUFREQ] Yet more typos
Dave Jones [Tue, 11 Mar 2003 21:37:34 +0000 (20:37 -0100)]
[CPUFREQ] Yet more typos

23 years ago[SERIAL] Add uart_console(port) macro.
Russell King [Tue, 11 Mar 2003 21:17:15 +0000 (21:17 +0000)]
[SERIAL] Add uart_console(port) macro.

23 years ago[SERIAL] Add sa1100 serial PM support using device model.
Russell King [Tue, 11 Mar 2003 21:09:23 +0000 (21:09 +0000)]
[SERIAL] Add sa1100 serial PM support using device model.

23 years ago[CPUFREQ] Yet another typo
Dave Jones [Tue, 11 Mar 2003 19:51:04 +0000 (18:51 -0100)]
[CPUFREQ] Yet another typo
From Steven Cole