Linux Kernel Mailing List | 1 Nov 2010 17:59

initramfs: Fix initramfs size for 32-bit arches

Gitweb:     http://git.kernel.org/linus/96f935934591b72f5b05fd6923bc8cdcae92f2e5
Commit:     96f935934591b72f5b05fd6923bc8cdcae92f2e5
Parent:     3985c7ce85039adacdf882904ca096f091d39346
Author:     Geert Uytterhoeven <geert <at> linux-m68k.org>
AuthorDate: Sun Oct 31 10:56:23 2010 +0100
Committer:  Linus Torvalds <torvalds <at> linux-foundation.org>
CommitDate: Sun Oct 31 06:35:14 2010 -0700

    initramfs: Fix initramfs size for 32-bit arches

    Commit ffe8018c3424 ("initramfs: fix initramfs size calculation") broke
    32-bit big-endian arches like (on ARAnyM):

        VFS: Cannot open root device "hda1" or unknown-block(3,1)
        Please append a correct "root=" boot option; here are the available partitions:
        fe80         1059408 nfhd8  (driver?)
          fe81          921600 nfhd8p1 00000000-0000-0000-0000-000000000nfhd8p1
          fe82          137807 nfhd8p2 00000000-0000-0000-0000-000000000nfhd8p2
        0200            3280 fd0  (driver?)
        0201            3280 fd1  (driver?)
        0300         1059408 hda  driver: ide-gd
          0301          921600 hda1 00000000-0000-0000-0000-000000000hda1
          0302          137807 hda2 00000000-0000-0000-0000-000000000hda2
        Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)

    As pointed out by Kerstin Jonsson <kerstin.jonsson <at> ericsson.com>, this
    is due to CONFIG_32BIT not being defined, so the initramfs size field is
    done as a 64-bit quad.  On little-endian (like x86) this doesn matter,
    but on a big-endian machine the 32-bit reads will see the (zero) high
    bits.
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

locks: remove fl_copy_lock lock_manager operation

Gitweb:     http://git.kernel.org/linus/bb8430a2c8fe2b726033017daadf73c69b0348ea
Commit:     bb8430a2c8fe2b726033017daadf73c69b0348ea
Parent:     51ee4b84f5c86935b438d6636f34b523edb415a8
Author:     Christoph Hellwig <hch <at> infradead.org>
AuthorDate: Sun Oct 31 08:35:31 2010 -0400
Committer:  Linus Torvalds <torvalds <at> linux-foundation.org>
CommitDate: Sun Oct 31 06:35:15 2010 -0700

    locks: remove fl_copy_lock lock_manager operation

    This one was only used for a nasty hack in nfsd, which has recently
    been removed.

    Signed-off-by: Christoph Hellwig <hch <at> lst.de>
    Signed-off-by: Linus Torvalds <torvalds <at> linux-foundation.org>
---
 Documentation/filesystems/Locking |    2 --
 fs/locks.c                        |    5 +----
 include/linux/fs.h                |    1 -
 3 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking
index 8a817f6..a91f308 100644
--- a/Documentation/filesystems/Locking
+++ b/Documentation/filesystems/Locking
 <at>  <at>  -322,7 +322,6  <at>  <at>  fl_release_private:	yes	yes
 prototypes:
 	int (*fl_compare_owner)(struct file_lock *, struct file_lock *);
 	void (*fl_notify)(struct file_lock *);  /* unblock callback */
-	void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

locks: let the caller free file_lock on ->setlease failure

Gitweb:     http://git.kernel.org/linus/51ee4b84f5c86935b438d6636f34b523edb415a8
Commit:     51ee4b84f5c86935b438d6636f34b523edb415a8
Parent:     96f935934591b72f5b05fd6923bc8cdcae92f2e5
Author:     Christoph Hellwig <hch <at> infradead.org>
AuthorDate: Sun Oct 31 08:35:10 2010 -0400
Committer:  Linus Torvalds <torvalds <at> linux-foundation.org>
CommitDate: Sun Oct 31 06:35:15 2010 -0700

    locks: let the caller free file_lock on ->setlease failure

    The caller allocated it, the caller should free it.

    The only issue so far is that we could change the flp pointer even on an
    error return if the fl_change callback failed.  But we can simply move
    the flp assignment after the fl_change invocation, as the callers don't
    care about the flp return value if the setlease call failed.

    Signed-off-by: Christoph Hellwig <hch <at> lst.de>
    Signed-off-by: Linus Torvalds <torvalds <at> linux-foundation.org>
---
 fs/cifs/cifsfs.c    |    5 +----
 fs/gfs2/file.c      |    2 --
 fs/locks.c          |   20 +++++++++++---------
 fs/nfs/file.c       |    2 --
 fs/nfsd/nfs4state.c |    1 +
 5 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 54745b6..75c4eaa 100644
--- a/fs/cifs/cifsfs.c
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

jbd2: Convert jbd2_slab_create_sem to mutex

Gitweb:     http://git.kernel.org/linus/51dfacdef38b1dd6fc58b03dd1725d517516b115
Commit:     51dfacdef38b1dd6fc58b03dd1725d517516b115
Parent:     117bf5fbdbdc7a5394e5718b3354238961c83067
Author:     Thomas Gleixner <tglx <at> linutronix.de>
AuthorDate: Sat Oct 16 22:34:39 2010 +0200
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Sat Oct 30 12:12:50 2010 +0200

    jbd2: Convert jbd2_slab_create_sem to mutex

    jbd2_slab_create_sem is used as a mutex, so make it one.

    [ akpm muttered: We may as well make it local to
    jbd2_journal_create_slab() also. ]

    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
    Cc: Ted Ts'o <tytso <at> mit.edu>
    Cc: Andrew Morton <akpm <at> linux-foundation.org>
    LKML-Reference: <alpine.LFD.2.00.1010162231480.2496 <at> localhost6.localdomain6>
    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
---
 fs/jbd2/journal.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 538417c..c590d15 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
 <at>  <at>  -1838,7 +1838,6  <at>  <at>  size_t journal_tag_bytes(journal_t *journal)
  */
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

hpfs: Convert sbi->hpfs_creation_de to mutex

Gitweb:     http://git.kernel.org/linus/117bf5fbdbdc7a5394e5718b3354238961c83067
Commit:     117bf5fbdbdc7a5394e5718b3354238961c83067
Parent:     18cb657ca1bafe635f368346a1676fb04c512edf
Author:     Thomas Gleixner <tglx <at> linutronix.de>
AuthorDate: Tue Sep 7 14:32:56 2010 +0000
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Sat Oct 30 10:12:03 2010 +0200

    hpfs: Convert sbi->hpfs_creation_de to mutex

    sbi->hpfs_creation_de is used as mutex so make it a mutex.

    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
    Acked-by: Christoph Hellwig <hch <at> infradead.org>
    Cc: Peter Zijlstra <peterz <at> infradead.org>
    Cc: Al Viro <viro <at> zeniv.linux.org.uk>
    Cc: linux-fsdevel <at> vger.kernel.org
    LKML-Reference: <20100907125056.228874895 <at> linutronix.de>
---
 fs/hpfs/buffer.c  |    4 ++--
 fs/hpfs/hpfs_fn.h |    2 +-
 fs/hpfs/super.c   |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fs/hpfs/buffer.c b/fs/hpfs/buffer.c
index eac5f96..793cb9d 100644
--- a/fs/hpfs/buffer.c
+++ b/fs/hpfs/buffer.c
 <at>  <at>  -14,7 +14,7  <at>  <at>  void hpfs_lock_creation(struct super_block *s)
 #ifdef DEBUG_LOCKS
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

genirq: Add single IRQ reservation helper

Gitweb:     http://git.kernel.org/linus/639bd12f778d55a2632fde5af7d0719abc1871b9
Commit:     639bd12f778d55a2632fde5af7d0719abc1871b9
Parent:     2656c36699677238edc9ec1fea79039f1fddbcb6
Author:     Paul Mundt <lethal <at> linux-sh.org>
AuthorDate: Tue Oct 26 16:19:13 2010 +0900
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Tue Oct 26 10:33:27 2010 +0200

    genirq: Add single IRQ reservation helper

    For cases that wish to reserve a single IRQ at a given place simply
    provide a wrapper in to the ranged reservation routine.

    Signed-off-by: Paul Mundt <lethal <at> linux-sh.org>
    LKML-Reference: <20101026071912.GD4733 <at> linux-sh.org>
    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
---
 include/linux/irq.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/irq.h b/include/linux/irq.h
index e963911..abde252 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
 <at>  <at>  -412,6 +412,11  <at>  <at>  static inline void irq_free_desc(unsigned int irq)
 	irq_free_descs(irq, 1);
 }

+static inline int irq_reserve_irq(unsigned int irq)
+{
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

genirq: Warn if enable_irq is called before irq is set up

Gitweb:     http://git.kernel.org/linus/2656c36699677238edc9ec1fea79039f1fddbcb6
Commit:     2656c36699677238edc9ec1fea79039f1fddbcb6
Parent:     d4429f608abde89e8bc1e24b43cd503feb95c496
Author:     Thomas Gleixner <tglx <at> linutronix.de>
AuthorDate: Fri Oct 22 14:47:57 2010 +0200
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Fri Oct 22 16:10:29 2010 +0200

    genirq: Warn if enable_irq is called before irq is set up

    The recent changes in the genirq core unearthed a bug in arch/um which
    called enable_irq() before the interrupt was set up.

    Warn and return instead of crashing the machine with a NULL pointer
    dereference.

    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
    Cc: Richard Weinberger <richard <at> nod.at>
---
 kernel/irq/manage.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 644e8d5..5f92acc 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
 <at>  <at>  -324,6 +324,10  <at>  <at>  void enable_irq(unsigned int irq)
 	if (!desc)
 		return;

(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

staging: Final semaphore cleanup

Gitweb:     http://git.kernel.org/linus/45f4d0243525b6bc747c946937ced437b135a84d
Commit:     45f4d0243525b6bc747c946937ced437b135a84d
Parent:     51dfacdef38b1dd6fc58b03dd1725d517516b115
Author:     Thomas Gleixner <tglx <at> linutronix.de>
AuthorDate: Sat Oct 30 11:06:57 2010 +0200
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Sat Oct 30 12:12:50 2010 +0200

    staging: Final semaphore cleanup

    Fixup the last remaining users of DECLARE_MUTEX and init_MUTEX.

    Scripted conversion, resulting code is binary equivalent.

    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
    Cc: Greg Kroah-Hartman <gregkh <at> suse.de>
    LKML-Reference: <20100907125057.278833764 <at> linutronix.de>
---
 drivers/staging/ath6kl/os/linux/ar6000_raw_if.c    |    4 ++--
 drivers/staging/brcm80211/brcmfmac/dhd_linux.c     |    4 ++--
 drivers/staging/brcm80211/sys/wl_mac80211.c        |    2 +-
 drivers/staging/comedi/drivers/dt9812.c            |    2 +-
 drivers/staging/comedi/drivers/usbdux.c            |    4 ++--
 drivers/staging/comedi/drivers/usbduxfast.c        |    4 ++--
 drivers/staging/dream/camera/mt9d112.c             |    2 +-
 drivers/staging/dream/camera/mt9p012_fox.c         |    2 +-
 drivers/staging/dream/camera/mt9t013.c             |    2 +-
 drivers/staging/dream/camera/s5k3e2fx.c            |    2 +-
 drivers/staging/msm/msm_fb.c                       |    4 ++--
 drivers/staging/rtl8712/osdep_service.h            |    2 +-
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

[SCSI] zfcp: Fix adapter activation on link down

Gitweb:     http://git.kernel.org/linus/0df138476c8306478d6e726f044868b4bccf411c
Commit:     0df138476c8306478d6e726f044868b4bccf411c
Parent:     229aebb873e29726b91e076161649cf45154b0bf
Author:     Swen Schillig <swen <at> vnet.ibm.com>
AuthorDate: Tue Oct 5 17:12:53 2010 +0200
Committer:  James Bottomley <James.Bottomley <at> suse.de>
CommitDate: Mon Oct 25 09:42:35 2010 -0500

    [SCSI] zfcp: Fix adapter activation on link down

    If an exchange config is executed while the local link is down, the
    request succeeds but the returned data is incomplete.  Proceeding with
    the adapter activation is leading to an unpredictable behaviour (e.g.
    kernel panic) caused by invalid values.  In such a scenario the
    recommended ERP is to retry the action and wait for a link up event.
    If the issue persists the activation has to fail.

    Signed-off-by: Swen Schillig <swen <at> vnet.ibm.com>
    Sigend-off-by: Christof Schmitt <christof.schmitt <at> de.ibm.com>
    Signed-off-by: James Bottomley <James.Bottomley <at> suse.de>
---
 drivers/s390/scsi/zfcp_fsf.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index beaf091..be03174 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
 <at>  <at>  -532,9 +532,6  <at>  <at>  static void zfcp_fsf_exchange_config_data_handler(struct zfcp_fsf_req *req)
 		fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN;
(Continue reading)

Linux Kernel Mailing List | 1 Nov 2010 17:59

genirq: Fix up irq_node() for irq_data changes.

Gitweb:     http://git.kernel.org/linus/4600d7c493f354a3e338a35bcf8a3bfbe815776a
Commit:     4600d7c493f354a3e338a35bcf8a3bfbe815776a
Parent:     639bd12f778d55a2632fde5af7d0719abc1871b9
Author:     Paul Mundt <lethal <at> linux-sh.org>
AuthorDate: Thu Oct 28 11:30:31 2010 +0900
Committer:  Thomas Gleixner <tglx <at> linutronix.de>
CommitDate: Thu Oct 28 11:58:39 2010 +0200

    genirq: Fix up irq_node() for irq_data changes.

    Now that the node ID is tracked in the irq_data structure, update the
    irq_node() definition accordingly. This fixes up irq_node() usage under
    GENERIC_HARDIRQS_NO_DEPRECATED && SMP.

    Signed-off-by: Paul Mundt <lethal <at> linux-sh.org>
    LKML-Reference: <20101028023031.GB10365 <at> linux-sh.org>
    Signed-off-by: Thomas Gleixner <tglx <at> linutronix.de>
---
 include/linux/irqnr.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h
index 05aa8c23..3bc4dca 100644
--- a/include/linux/irqnr.h
+++ b/include/linux/irqnr.h
 <at>  <at>  -43,7 +43,7  <at>  <at>  unsigned int irq_get_next_irq(unsigned int offset);
 		else

 #ifdef CONFIG_SMP
-#define irq_node(irq)	(irq_to_desc(irq)->node)
(Continue reading)


Gmane