]> git.hungrycats.org Git - linux/log
linux
21 years agoNTFS: - Fix two race conditions in fs/ntfs/inode.c::ntfs_put_inode().
Anton Altaparmakov [Thu, 14 Oct 2004 18:09:31 +0000 (19:09 +0100)]
NTFS: - Fix two race conditions in fs/ntfs/inode.c::ntfs_put_inode().

- Fix race condition in fs/ntfs/inode.c::ntfs_put_inode() by moving the
  index inode bitmap inode release code from there to
  fs/ntfs/inode.c::ntfs_clear_big_inode().  (Thanks to Christoph
  Hellwig for spotting this.)
- Fix race condition in fs/ntfs/inode.c::ntfs_put_inode() by taking the
  inode semaphore around the code thst sets ni->itype.index.bmp_ino to
  NULL and reorganize the code to optimize it a bit.  (Thanks to
  Christoph Hellwig for spotting this.)

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
21 years agoNTFS: Big cleanup of mft record writing code.
Anton Altaparmakov [Thu, 14 Oct 2004 18:02:47 +0000 (19:02 +0100)]
NTFS: Big cleanup of mft record writing code.

- Clear the page uptodate flag in fs/ntfs/aops.c::ntfs_write_mst_block()
  to ensure noone can see the page whilst the mst fixups are applied.
- Add the helper fs/ntfs/mft.c::ntfs_may_write_mft_record() which
  checks if an mft record may be written out safely obtaining any
  necessary locks in the process.  This is used by
  fs/ntfs/aops.c::ntfs_write_mst_block().
- Modify fs/ntfs/aops.c::ntfs_write_mst_block() to also work for
  writing mft records and improve its error handling in the process.
  Now if any of the records in the page fail to be written out, all
  other records will be written out instead of aborting completely.
- Remove ntfs_mft_aops and update all users to use ntfs_mst_aops.
- Modify fs/ntfs/inode.c::ntfs_read_locked_inode() to set the
  ntfs_mst_aops for all inodes which are NInoMstProtected() and
  ntfs_aops for all other inodes.
- Rename fs/ntfs/mft.c::sync_mft_mirror{,_umount}() to
  ntfs_sync_mft_mirror{,_umount}() and change their parameters so they
  no longer require an ntfs inode to be present.  Update all callers.
- Cleanup the error handling in fs/ntfs/mft.c::ntfs_sync_mft_mirror().
- Clear the page uptodate flag in fs/ntfs/mft.c::ntfs_sync_mft_mirror()
  to ensure noone can see the page whilst the mst fixups are applied.
- Remove the no longer needed fs/ntfs/mft.c::ntfs_mft_writepage() and
  fs/ntfs/mft.c::try_map_mft_record().
- Fix callers of fs/ntfs/aops.c::mark_ntfs_record_dirty() to call it
  with the ntfs inode which contains the page rather than the ntfs
  inode the mft record of which is in the page.

Ooops.  Yes, I know, I should have split this up into smaller changes...

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
21 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Wed, 13 Oct 2004 18:32:57 +0000 (19:32 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoMerge http://oss.sgi.com:8090/xfs-linux-2.6
Linus Torvalds [Wed, 13 Oct 2004 00:28:23 +0000 (17:28 -0700)]
Merge http://oss.sgi.com:8090/xfs-linux-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

21 years ago[XFS] fix a freeze/thaw deadlock
Christoph Hellwig [Wed, 13 Oct 2004 23:30:49 +0000 (09:30 +1000)]
[XFS] fix a freeze/thaw deadlock

Signed-off-by: Nathan Scott <nathans@sgi.com>
21 years ago[XFS] Fix regression when running in laptop mode, causes hangs on sync.
Nathan Scott [Wed, 13 Oct 2004 23:10:46 +0000 (09:10 +1000)]
[XFS] Fix regression when running in laptop mode, causes hangs on sync.

SGI Modid: xfs-linux:xfs-kern:19744a
Signed-off-by: Nathan Scott <nathans@sgi.com>
21 years ago[XFS] Fix up write_inode return type to use the right signedness.
Nathan Scott [Wed, 13 Oct 2004 23:07:07 +0000 (09:07 +1000)]
[XFS] Fix up write_inode return type to use the right signedness.

SGI Modid: xfs-linux:xfs-kern:19632a
Signed-off-by: Nathan Scott <nathans@sgi.com>
22 years agoMerge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
Anton Altaparmakov [Tue, 12 Oct 2004 10:46:06 +0000 (11:46 +0100)]
Merge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
into cantab.net:/home/src/ntfs-2.6-devel

22 years agoNTFS: Provide exclusion between opening an inode / mapping an mft record
Anton Altaparmakov [Tue, 12 Oct 2004 10:27:35 +0000 (11:27 +0100)]
NTFS: Provide exclusion between opening an inode / mapping an mft record
      and accessing the mft record in fs/ntfs/mft.c::ntfs_mft_writepage()
      by setting the page not uptodate throughout ntfs_mft_writepage().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Map the page instead of using page_address() before writing to it in
Anton Altaparmakov [Tue, 12 Oct 2004 10:21:04 +0000 (11:21 +0100)]
NTFS: Map the page instead of using page_address() before writing to it in
      fs/ntfs/aops.c::ntfs_mft_writepage().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Attempting to write outside initialized size is _not_ a bug so remove
Anton Altaparmakov [Tue, 12 Oct 2004 10:09:27 +0000 (11:09 +0100)]
NTFS: Attempting to write outside initialized size is _not_ a bug so remove
      the bug check from fs/ntfs/aops.c::ntfs_write_mst_block().  It is in
      fact required to write outside initialized size when preparing to
      extend the initialized size.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years ago[PATCH] ppc64: one more explicit cmp instruction sizing
David Woodhouse [Tue, 12 Oct 2004 00:52:30 +0000 (17:52 -0700)]
[PATCH] ppc64: one more explicit cmp instruction sizing

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
Richard Russon [Tue, 12 Oct 2004 00:45:39 +0000 (01:45 +0100)]
Merge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoNTFS: Modify fs/ntfs/mft.c::write_mft_record_nolock() so that it only
Anton Altaparmakov [Mon, 11 Oct 2004 23:19:53 +0000 (00:19 +0100)]
NTFS: Modify fs/ntfs/mft.c::write_mft_record_nolock() so that it only
      writes the mft record if the buffers belonging to it are dirty.
      Otherwise we assume that it was written out by other means already.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Mon, 11 Oct 2004 18:40:22 +0000 (19:40 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoNTFS: Add fs/ntfs/mft.c::try_map_mft_record() which fails with -EALREADY if
Anton Altaparmakov [Mon, 11 Oct 2004 14:51:24 +0000 (15:51 +0100)]
NTFS: Add fs/ntfs/mft.c::try_map_mft_record() which fails with -EALREADY if
      the mft record is already locked and otherwise behaves the same way
      as fs/ntfs/mft.c::map_mft_record().

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoMerge cantab.net:/home/src/bklinux-2.6
Anton Altaparmakov [Mon, 11 Oct 2004 11:43:44 +0000 (12:43 +0100)]
Merge cantab.net:/home/src/bklinux-2.6
into cantab.net:/home/src/ntfs-2.6-devel

22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Mon, 11 Oct 2004 05:12:56 +0000 (06:12 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years ago[PATCH] megaraid 2.20.4: fix a data corruption bug
Sreenivas Bagalkote [Mon, 11 Oct 2004 01:32:50 +0000 (18:32 -0700)]
[PATCH] megaraid 2.20.4: fix a data corruption bug

Fixes a data corruption issue. Because of a typo in the driver, IO packets
were wrongly shared by the IOCTL path. This caused the whole IO command
to be replaced by an incoming IOCTL command.

22 years ago[PATCH] ACPI: check parameter for NULL
Nick Piggin [Mon, 11 Oct 2004 01:26:06 +0000 (18:26 -0700)]
[PATCH] ACPI: check parameter for NULL

ACPI still explodes on my old PII and stops it booting.

Anyway, it is oopsing in drivers/acpi/scan.c line 207 where element
(which is NULL) gets dereferenced.

The ACPI bios on this thing has always seemed to be pretty broken, but
this at least allows the 'power' button to continue to work (the only
reason why I want ACPI).

22 years agoMerge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
Anton Altaparmakov [Sun, 10 Oct 2004 22:26:39 +0000 (23:26 +0100)]
Merge ssh://linux-ntfs@bkbits.net/ntfs-2.6-devel
into cantab.net:/home/src/ntfs-2.6-devel

22 years agoNTFS: Fix warnings on x86-64. (Randy Dunlap with slight modification from me)
Anton Altaparmakov [Sun, 10 Oct 2004 22:24:12 +0000 (23:24 +0100)]
NTFS: Fix warnings on x86-64.  (Randy Dunlap with slight modification from me)

Fix printk arg type warnings on x86-64 (and OK on x86-32) (gcc 3.3.3):
fs/ntfs/dir.c:1272: warning: long long unsigned int format, long unsigned int arg (arg 6)
fs/ntfs/dir.c:1388: warning: long long unsigned int format, long unsigned int arg (arg 5

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoNTFS: Update fs/ntfs/inode.c::ntfs_write_inode() to also use the helper
Anton Altaparmakov [Sun, 10 Oct 2004 22:13:46 +0000 (23:13 +0100)]
NTFS: Update fs/ntfs/inode.c::ntfs_write_inode() to also use the helper
      mark_ntfs_record_dirty() and thus to set the buffers belonging to the
      mft record dirty as well as the page itself.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
22 years agoLinux 2.6.9-rc4 v2.6.9-rc4
Linus Torvalds [Sun, 10 Oct 2004 12:55:28 +0000 (05:55 -0700)]
Linux 2.6.9-rc4

22 years ago[PATCH] find_isa_irq_pin can't be __init
Dave Jones [Sun, 10 Oct 2004 10:48:06 +0000 (03:48 -0700)]
[PATCH] find_isa_irq_pin can't be __init

As spotted by one of our Fedora users, we sometimes
oops during shutdown (http://www.roberthancock.com/kerneloops.png)
because disable_IO_APIC() wants to call find_isa_irq_pin(),
which we threw away during init.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Sun, 10 Oct 2004 04:04:46 +0000 (21:04 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[PCMCIA] Remove two unused variables.
Russell King [Sun, 10 Oct 2004 19:42:40 +0000 (20:42 +0100)]
[PCMCIA] Remove two unused variables.

22 years agoMerge bk://linux-acpi.bkbits.net/26-latest-release
Linus Torvalds [Sun, 10 Oct 2004 03:44:33 +0000 (20:44 -0700)]
Merge bk://linux-acpi.bkbits.net/26-latest-release
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ACPI] If BIOS disabled the LAPIC, believe it by default.
Len Brown [Sun, 10 Oct 2004 09:21:08 +0000 (05:21 -0400)]
[ACPI] If BIOS disabled the LAPIC, believe it by default.
"lapic" is available to force enabling the LAPIC
in the event you know more than your BIOS vendor.
http://bugzilla.kernel.org/show_bug.cgi?id=3238

22 years agoCset exclude: len.brown@intel.com|ChangeSet|20041010081245|01886
Len Brown [Sun, 10 Oct 2004 08:56:59 +0000 (04:56 -0400)]
Cset exclude: len.brown@intel.com|ChangeSet|20041010081245|01886

22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Sun, 10 Oct 2004 03:27:02 +0000 (04:27 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoUse "request_resource()" to properly fix up PCI resource clashes.
Linus Torvalds [Sun, 10 Oct 2004 03:21:04 +0000 (20:21 -0700)]
Use "request_resource()" to properly fix up PCI resource clashes.

This is made possible by the previous resource allocation ordering
patch.

Now that we run the pre-existing PCI resource discovery _before_
ACPI resources have been added, we should not "insert" the resources
into any existing tree. If they clash with existing resources, we
should re-allocate them (later, when we have the full resource map).

22 years ago[PATCH] PCI resource allocation re-ordering
Li Shaohua [Sun, 10 Oct 2004 03:15:28 +0000 (20:15 -0700)]
[PATCH] PCI resource allocation re-ordering

This re-orders the PCI and ACPI IO resource assignment as suggested by
Linus.

With this patch, now the sequence of reserving resources is:
 1. PCI claim BAR
 2. ACPI reserve motherboard resources
 3. PNP reserve motherboard resources
 4. PCI allocate resources for uninitialized PCI devices

This way the kernel allocates new PCI resources after it has full
knowledge of the resource state, and at the same time allows ACPI and
PnP to be run _after_ we've filled in our knowledge about pre-allocated
resources.

The way it is done is to make the last phase of the original PCI assign
resources code to be an 'fs_initcall', along with the ACPI and PnP
initializations.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://bart.bkbits.net/ide-2.6
Linus Torvalds [Sun, 10 Oct 2004 02:52:51 +0000 (19:52 -0700)]
Merge bk://bart.bkbits.net/ide-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ide] pdc202xx_old: kill PDC202XX_DECODE_REGISTER_INFO
Bartlomiej Zolnierkiewicz [Sun, 10 Oct 2004 20:00:26 +0000 (22:00 +0200)]
[ide] pdc202xx_old: kill PDC202XX_DECODE_REGISTER_INFO

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
22 years ago[ide] kill dead TASKFILE_IN_OUT code
Bartlomiej Zolnierkiewicz [Sun, 10 Oct 2004 19:47:22 +0000 (21:47 +0200)]
[ide] kill dead TASKFILE_IN_OUT code

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
22 years ago[ide] cmd64x: kill dead DEBUG_CMD_REGS code
Bartlomiej Zolnierkiewicz [Sun, 10 Oct 2004 19:44:23 +0000 (21:44 +0200)]
[ide] cmd64x: kill dead DEBUG_CMD_REGS code

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
22 years ago[ide] ide-dma blacklist behaviour broken
Bartlomiej Zolnierkiewicz [Sun, 10 Oct 2004 19:37:56 +0000 (21:37 +0200)]
[ide] ide-dma blacklist behaviour broken

From: Jens Axboe <axboe@suse.de>

The blacklist stuff is broken. When set_using_dma() calls into
->ide_dma_check(), it returns __ide_dma_off() for a blacklisted drive.
This of course succeeds, returning success to the caller of ->ide_dma_check().
Not so good... It then uncondtionally calls ->ide_dma_on(), which turns on
DMA for the drive.

This moves the check to __ide_dma_on() so we also catch the buggy
->ide_dma_check() defined by various chipset drivers.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
Linus Torvalds [Sun, 10 Oct 2004 02:49:59 +0000 (19:49 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-pcmcia
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ACPI] Don't enable LAPIC when the BIOS disabled it.
Len Brown [Sun, 10 Oct 2004 00:12:45 +0000 (20:12 -0400)]
[ACPI] Don't enable LAPIC when the BIOS disabled it.
Doing so apparently breaks every Dell on Earth.
http://bugzilla.kernel.org/show_bug.cgi?id=3238

22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Sat, 9 Oct 2004 16:08:25 +0000 (17:08 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years ago[PATCH] Fix Neomagic configuration dependency
Adrian Bunk [Sat, 9 Oct 2004 09:55:07 +0000 (02:55 -0700)]
[PATCH] Fix Neomagic configuration dependency

FB_NEOMAGIC needs FB_MODE_HELPER (for vesa_modes).

Reported by Michel Angelo da Silva Pereira.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Sat, 9 Oct 2004 08:36:36 +0000 (01:36 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM PATCH] 2073/3: Hynix h720x architecture support
Sascha Hauer [Sat, 9 Oct 2004 23:05:21 +0000 (00:05 +0100)]
[ARM PATCH] 2073/3: Hynix h720x architecture support

Patch from Sascha Hauer

This patch supports the Hynix developer boards h7201 and h7202 for the
HMS30C7201 and HMS30C7202 CPUs.

Changes to previous patch:
- reorganized file structure. We now have common.c which shares stuff
  common to all h720x processors and cpu-h720[12].c files for the cpu
  specific stuff
- fixed timer handling for timers 1/2
- cleaned up h720x register definitions and splitted in files specific
  to each cpu and one generic part

Signed-off-by: Thomas Gleixner
Signed-off-by: Robert Schwebel
Signed-off-by: Sascha Hauer
22 years ago[PATCH] sparc32: fix warning for changed section attributes
Clemens Buchacher [Sat, 9 Oct 2004 08:05:38 +0000 (01:05 -0700)]
[PATCH] sparc32: fix warning for changed section attributes

This fixes the "Ignoring changed section attributes" warning by commenting
out the attributes appended by gcc.

The previous 'fix' created a section '.text,#alloc' (literally), which I
guess was not intended.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] Remove get_cpu_ptr() comment reference
Jonathan Corbet [Sat, 9 Oct 2004 08:05:26 +0000 (01:05 -0700)]
[PATCH] Remove get_cpu_ptr() comment reference

Since get_cpu_ptr() went away, we probably shouldn't tease developers by
telling them to use it in the comments.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] alpha: cpu mask fix-ups broke SMP DP264 machines in 2.6.8
Ali Saidi [Sat, 9 Oct 2004 08:05:14 +0000 (01:05 -0700)]
[PATCH] alpha: cpu mask fix-ups broke SMP DP264 machines in 2.6.8

The cpu mask fix-ups in 2.6.8 broke SMP kernels booting on a DP264.
Instead of not setting the DIM for cpus that did not exit, the patch
inadvertently doesn't set the DIM for CPUs that do exist.  Thus no device
interrupts get to the cpu.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: qeth network driver
Thomas Spatzier [Sat, 9 Oct 2004 08:05:02 +0000 (01:05 -0700)]
[PATCH] s390: qeth network driver

qeth network driver changes:
 - Unlock queue in qeth_do_sent_packet if there is no empty buffer
   in packing state.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: dcss changes
Gerald Schaefer [Sat, 9 Oct 2004 08:04:50 +0000 (01:04 -0700)]
[PATCH] s390: dcss changes

DCSS block device driver changes:
 - Add module/kernel parameter for loading segments.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: z/VM monitor stream
Gerald Schaefer [Sat, 9 Oct 2004 08:04:38 +0000 (01:04 -0700)]
[PATCH] s390: z/VM monitor stream

z/VM monitor stream changes:
 - Reduce stack usage of appldata_get_mem_data.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: dasd driver
Horst Hummel [Sat, 9 Oct 2004 08:04:26 +0000 (01:04 -0700)]
[PATCH] s390: dasd driver

dasd driver changes:
 - Free memory returned by read_conf_data.
 - Add warning message if use_diag is specified with a non-CMS
   formatted device.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: common i/o layer
Cornelia Huck [Sat, 9 Oct 2004 08:04:14 +0000 (01:04 -0700)]
[PATCH] s390: common i/o layer

Common i/o layer changes:
 - Fix error handling in io_subchannel_register.
 - Fix __MAX_SUBCHANNELS limit checking.
 - Clear slow_subchannel structure after kmalloc.
 - Update ssd_info if a different device appears at an already known
   subchannel to get the correct set of chpids.
 - Avoid struct initializers to reduce stack usage of ccwgroup_create,
   readall_cmb and io_subchannel_recog,
 - Setup fields in pmcw in each retry because msch might fail and a stsch
   overwrites them.
 - Prevent irq_exit() in cio_tpi from calling do_softirq by adding a
   local_bh_disable/__local_bh_enable pair.
 - Retry sense id after receiving an unsolicited interrupt.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] s390: core changes
Martin Schwidefsky [Sat, 9 Oct 2004 08:04:02 +0000 (01:04 -0700)]
[PATCH] s390: core changes

From: Christian Borntrdger <cborntra@de.ibm.com>
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
From: Thomas Spatzier <tspat@de.ibm.com>

s390 core changes:
 - Add default storage key and introduce page_{set,get}_storage_key.
 - Fix access to siginfo in copy_siginfo_from_user32.
 - Regenerate default configuration.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] therm_adt746x: various fixes
Colin Leroy [Sat, 9 Oct 2004 08:03:50 +0000 (01:03 -0700)]
[PATCH] therm_adt746x: various fixes

This one removes the other occurences of "°C"; fixes displayed fan speed so
that it uses the same scale than other occurences of this parameter instead
of RPM only; fixes the RPM reading of the fan so that it shows zero instead
of 82 when it is effectively stopped.

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] hugetlb: initialize sb->s_maxbytes
William Lee Irwin III [Sat, 9 Oct 2004 08:03:38 +0000 (01:03 -0700)]
[PATCH] hugetlb: initialize sb->s_maxbytes

hugetblfs appears not to support the creation of files larger than 2GB.
hugetlbfs_vmtruncate() checks against the s_maxbytes member of the super
block and returns EFBIG if the requested file size is too large.

Signed-off-by: Guy Cardwell <gcardwel@motorola.com>
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pm: console driver fixes
Ian Campbell [Sat, 9 Oct 2004 08:03:26 +0000 (01:03 -0700)]
[PATCH] pm: console driver fixes

Fix warnings in kernel/power/console.c by only declaring orig_fgconsole
and orig_kmsg when required by SUSPEND_CONSOLE. Restore kmsg_redirect on
resume.

Signed-off-by: Ian Campbell <icampbell@arcom.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] pc110pad.c request_region() fix
Li Shaohua [Sat, 9 Oct 2004 07:51:19 +0000 (00:51 -0700)]
[PATCH] pc110pad.c request_region() fix

request_region() returns NULL if failed.  The driver gets it wrong.

Signed-off-by: Li Shaohua <shaoh.li@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] i2o.h fix
Alexander Viro [Sat, 9 Oct 2004 05:51:39 +0000 (22:51 -0700)]
[PATCH] i2o.h fix

i2o.h uses stuff defined in linux/dma-mapping.h but includes
asm/dma-mapping.h instead.  It works by accident on some platforms
(they end up pulling linux/dma-mapping.h from asm-generic/pci-dma-compat.h
before it hits the fan), but breaks on e.g. alpha.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years agodrm: cleanup header includes into one drm_core.h include
Dave Airlie [Sun, 10 Oct 2004 06:13:54 +0000 (16:13 +1000)]
drm: cleanup header includes into one drm_core.h include

This patch just cleans up the fact that all drm drivers include a
bunch of header files, it places them into one place (drm_core.h)
and uses that.

From: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agodrm: remove unused dma support remnants.
Dave Airlie [Sun, 10 Oct 2004 04:57:24 +0000 (14:57 +1000)]
drm: remove unused dma support remnants.

These are unused since the gamma driver was dropped, they
cause problems with the via driver (coming soon).

Signed-off-by: Dave Airlie <airlied@linux.ie>
22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Sat, 9 Oct 2004 05:08:45 +0000 (06:08 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Sat, 9 Oct 2004 02:22:02 +0000 (03:22 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years ago[PCMCIA] Improve locking for memory resource probing.
Russell King [Sat, 9 Oct 2004 00:48:34 +0000 (01:48 +0100)]
[PCMCIA] Improve locking for memory resource probing.

- Pass a mask of the regions we wish to be probed to validate_mem
- Only take s->skt_sem if we need to probe resources on a socket

This prevents a deadlock reported by Adam Belay caused by ds.c waiting
with the socket semaphore held for userspace to respond.  Meanwhile,
userspace may under some rare circumstances issue a request to read
tuples from the card, which tries to take the socket semaphore again.

22 years agoMerge intel.com:/home/lenb/src/26-stable-dev
Len Brown [Fri, 8 Oct 2004 21:19:48 +0000 (17:19 -0400)]
Merge intel.com:/home/lenb/src/26-stable-dev
into intel.com:/home/lenb/src/26-latest-dev

22 years ago[ACPI4ASUS] globalize hotk structure
Len Brown [Fri, 8 Oct 2004 20:25:31 +0000 (16:25 -0400)]
[ACPI4ASUS] globalize hotk structure

This cleans the code up a bit, but mainly allows most functions
to be called externally when need (read: video driver) arises.

Signed-off-by: Karol Kozimor <sziwan@hell.org.pl
22 years ago[ACPI4ASUS] support M6700R laptops
Len Brown [Fri, 8 Oct 2004 20:24:17 +0000 (16:24 -0400)]
[ACPI4ASUS] support M6700R laptops

Signed-off-by: Karol Kozimor <sziwan@hell.org.pl
22 years ago[ACPI4ASUS] acpi_bus_register_driver() return code
Len Brown [Fri, 8 Oct 2004 20:22:10 +0000 (16:22 -0400)]
[ACPI4ASUS] acpi_bus_register_driver() return code

Signed-off-by: Karol Kozimor <sziwan@hell.org.pl>
22 years ago[ACPI] acpi4asus update: support W1N, v0.29
Len Brown [Fri, 8 Oct 2004 20:20:30 +0000 (16:20 -0400)]
[ACPI] acpi4asus update: support W1N, v0.29

Signed-off-by: Karol Kozimor <sziwan@hell.org.pl>
22 years agoMerge intel.com:/home/lenb/src/26-stable-dev
Len Brown [Fri, 8 Oct 2004 20:09:18 +0000 (16:09 -0400)]
Merge intel.com:/home/lenb/src/26-stable-dev
into intel.com:/home/lenb/src/26-latest-dev

22 years ago[ACPI] thermal module race condition/memory leak (David Shaohua Li)
Len Brown [Fri, 8 Oct 2004 19:59:07 +0000 (15:59 -0400)]
[ACPI] thermal module race condition/memory leak (David Shaohua Li)
http://bugzilla.kernel.org/show_bug.cgi?id=3231

22 years ago[ACPI] fix double quoted params such as acpi_os_string="a b c"
Len Brown [Fri, 8 Oct 2004 19:51:51 +0000 (15:51 -0400)]
[ACPI] fix double quoted params such as acpi_os_string="a b c"
by Christian Lupien
http://bugzilla.kernel.org/show_bug.cgi?id=3242

22 years agoMerge intel.com:/home/lenb/bk/26-latest-ref
Len Brown [Fri, 8 Oct 2004 19:34:25 +0000 (15:34 -0400)]
Merge intel.com:/home/lenb/bk/26-latest-ref
into intel.com:/home/lenb/src/26-latest-dev

22 years agoMerge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Richard Russon [Fri, 8 Oct 2004 18:32:06 +0000 (19:32 +0100)]
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel

22 years agoMerge intel.com:/home/lenb/src/26-stable-dev
Len Brown [Fri, 8 Oct 2004 13:56:02 +0000 (09:56 -0400)]
Merge intel.com:/home/lenb/src/26-stable-dev
into intel.com:/home/lenb/src/26-latest-dev

22 years ago[ACPI] x86_64 build fix
Len Brown [Fri, 8 Oct 2004 13:33:03 +0000 (09:33 -0400)]
[ACPI] x86_64 build fix

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years ago[ACPI] fix allmodconfig build
Len Brown [Fri, 8 Oct 2004 13:31:00 +0000 (09:31 -0400)]
[ACPI] fix allmodconfig build

Signed-off-by: Andrew Morton <akpm@osdl.org>
22 years agoMerge intel.com:/home/lenb/bk/26-latest-ref
Len Brown [Fri, 8 Oct 2004 13:20:41 +0000 (09:20 -0400)]
Merge intel.com:/home/lenb/bk/26-latest-ref
into intel.com:/home/lenb/src/26-latest-dev

22 years agoUpdate ray_cs Raylink/WebGear wireless driver.
Linus Torvalds [Fri, 8 Oct 2004 11:30:54 +0000 (04:30 -0700)]
Update ray_cs Raylink/WebGear wireless driver.

This adds iomem annotations, cleans up the code, fixes
an oops at unload time, and builds in the wireless
extensions that were not getting enabled due to an
obsolete CONFIG_NET_PCMCIA_RADIO test.

Tested by Jean Tourrilhes, who pointed out the wireless
extensions problem.

22 years agoMerge bk://bk.arm.linux.org.uk/linux-2.6-rmk
Linus Torvalds [Fri, 8 Oct 2004 09:51:16 +0000 (02:51 -0700)]
Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk
into ppc970.osdl.org:/home/torvalds/v2.6/linux

22 years ago[ARM] ecard.c: Remove unnecessary context checks.
Russell King [Fri, 8 Oct 2004 23:54:13 +0000 (00:54 +0100)]
[ARM] ecard.c: Remove unnecessary context checks.

22 years ago[ARM] ecard.c: pass a function pointer for kecardd
Russell King [Fri, 8 Oct 2004 23:48:35 +0000 (00:48 +0100)]
[ARM] ecard.c: pass a function pointer for kecardd

22 years ago[ARM] ecard.c: Make the ecard task completion per request.
Russell King [Fri, 8 Oct 2004 23:35:37 +0000 (00:35 +0100)]
[ARM] ecard.c: Make the ecard task completion per request.

22 years ago[ARM] Ecard initialisation tweaks.
Russell King [Fri, 8 Oct 2004 23:24:07 +0000 (00:24 +0100)]
[ARM] Ecard initialisation tweaks.

Start ecard_task at initialisation time.
Statically initialise ecard wait queue head.

22 years ago[ARM] Mark source for copy_page const.
Russell King [Fri, 8 Oct 2004 17:53:52 +0000 (18:53 +0100)]
[ARM] Mark source for copy_page const.

22 years ago[ARM] Remove cache type check before flushing ARMv6 cache.
Russell King [Fri, 8 Oct 2004 16:37:05 +0000 (17:37 +0100)]
[ARM] Remove cache type check before flushing ARMv6 cache.

We do not need to check which type of cache we have before
using using the Harvard or von Neumann cache instructions -
the unimplemented instructions are defined to be NOPs.

22 years ago[ARM] Add decompressor support for ARMv6 caches.
Russell King [Fri, 8 Oct 2004 16:30:49 +0000 (17:30 +0100)]
[ARM] Add decompressor support for ARMv6 caches.

22 years ago[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd
David Woodhouse [Fri, 8 Oct 2004 00:36:04 +0000 (17:36 -0700)]
[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd

On Fri, 2004-10-08 at 15:37 +1000, Paul Mackerras wrote:
> This patch replaces cmp{,l}{,i} with cmp{,l}[wd]{,i} as appropriate.
> The original patch was from Segher Boessenkool, slightly modified by
> me.

And also for ppc32 and arch/ppc64/kernel/ItLpQueue.c...

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd
Paul Mackerras [Fri, 8 Oct 2004 00:35:51 +0000 (17:35 -0700)]
[PATCH] PPC64 Replace cmp instructions with cmpw/cmpd

There were a few places in assembly code in the ppc64 part of the
kernel where we were using the old forms of the compare instruction
(cmp, cmpi, cmpl, cmpli) which don't specify the operand size (word or
doubleword).  These have been accepted for a long time for backward
compatibility with the old POWER architecture (and defaulted to a
32-bit comparison) but are now being rejected by the latest versions
of binutils.  Some of them were actual bugs in that they were on
things which were actually 64-bit values such as pointers (not that
any of them actually caused a problem in practice).

This patch replaces cmp{,l}{,i} with cmp{,l}[wd]{,i} as appropriate.
The original patch was from Segher Boessenkool, slightly modified by
me.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] PPC64: Remove degree symbol from rtas-proc.c
Paul Mackerras [Fri, 8 Oct 2004 00:35:39 +0000 (17:35 -0700)]
[PATCH] PPC64: Remove degree symbol from rtas-proc.c

Alan Cox pointed out that the degree symbol in the thermal sensor proc
files that we have on ppc64 cause problems for people using other
locales or UTF-8.  This patch makes them disappear.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: Fix module exports for G5
Benjamin Herrenschmidt [Fri, 8 Oct 2004 00:35:27 +0000 (17:35 -0700)]
[PATCH] ppc64: Fix module exports for G5

Some stuffs in ppc_ksyms.c where still #ifdef CONFIG_PPC_PSERIES, which
is no longer set for PowerMac-only configs. Change them to depend on
CONFIG_PPC_MULTIPLATFORM for now. Later on, a bunch of these will be
just gone since those are mostly deprecated functions and I'll move the
exports close to the actual functions.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix major & minor handling in hostfs
Paolo \'Blaisorblade\' Giarrusso [Fri, 8 Oct 2004 00:35:15 +0000 (17:35 -0700)]
[PATCH] uml: fix major & minor handling in hostfs

Currently hostfs passes the rdev value from stat() on the host as rdev
value to return to stat() on the guest; but we cannot pass rdev as is
because glibc and the kernel disagree about its definition.  So we must
decode it in a major/minor couple with glibc macros and re-encode it in
kernelspace code.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix fd leak with HostFs
Paolo \'Blaisorblade\' Giarrusso [Fri, 8 Oct 2004 00:35:03 +0000 (17:35 -0700)]
[PATCH] uml: fix fd leak with HostFs

On 2.4 we used force_delete() to make sure inode were not cached, and we then
close the host file when the inode is cleared; when porting to 2.6 the
"force_delete" thing was dropped, and this patch adds a fix for this (by
setting drop_inode = generic_delete_inode).

Search for drop_inode in the 2.6 Documentation/filesystems/vfs.txt for info
about this.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: remove wrong declaration
Paolo \'Blaisorblade\' Giarrusso [Fri, 8 Oct 2004 00:34:51 +0000 (17:34 -0700)]
[PATCH] uml: remove wrong declaration

Avoid compile failure due to the addition of sys_timer_create to
linux/syscalls.h

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: fix get_user warning
Paolo \'Blaisorblade\' Giarrusso [Fri, 8 Oct 2004 00:34:39 +0000 (17:34 -0700)]
[PATCH] uml: fix get_user warning

Adds some more parenthesis for a macro arg to fix a warning (which was in
kernel/uid16.c).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] uml: add generic ptrace requests
Paolo \'Blaisorblade\' Giarrusso [Fri, 8 Oct 2004 00:34:27 +0000 (17:34 -0700)]
[PATCH] uml: add generic ptrace requests

When we don't know how to handle ptrace(2) calls, call the arch-independent
ptrace_request like i386 (and I guess other archs) do, instead of returning
-EIO.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc64: Kconfig cleanups
David Gibson [Fri, 8 Oct 2004 00:34:15 +0000 (17:34 -0700)]
[PATCH] ppc64: Kconfig cleanups

Now that the PPC64 code supports more platforms than just pSeries and
iSeries, some p/i specific Kconfig options need to be updated accordingly.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix warning in arch/ppc/pmac/simple/misc.c
Colin Leroy [Fri, 8 Oct 2004 00:34:03 +0000 (17:34 -0700)]
[PATCH] fix warning in arch/ppc/pmac/simple/misc.c

Fixes a "variable might be used uninitialized".  As usual it's a harmless
warning because it can't really be, but that cleans the compilation's
output :)

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] fix ans-lcd compilation
Colin Leroy [Fri, 8 Oct 2004 00:33:50 +0000 (17:33 -0700)]
[PATCH] fix ans-lcd compilation

This patch fixes ans-lcd compilation error and warnings.  See
http://bugzilla.kernel.org/show_bug.cgi?id=3497

Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] ppc32: move some common PPC44x code to ibm44x_common.c
Matt Porter [Fri, 8 Oct 2004 00:33:38 +0000 (17:33 -0700)]
[PATCH] ppc32: move some common PPC44x code to ibm44x_common.c

This is first part (trivial one) of the ebony.c/ocotea.c cleanup, which
moves common stuff to ibm44x_common.c.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
22 years ago[PATCH] kprobes exception notifier fix 2
Prasanna S. Panchamukhi [Fri, 8 Oct 2004 00:33:26 +0000 (17:33 -0700)]
[PATCH] kprobes exception notifier fix 2

This patch adds a few NOTIFY_STOP missed out in the eariler patch.

Signed-Off-By: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>