[PATCH 2.4.31-pre1] rwsem-spinlock linkage error

From: Mikael Pettersson (mikpe_at_user.it.uu.se)
Date: 04/26/05

  • Next message: Bodo Eggert: "Re: [PATCH] private mounts"
    Date:	Tue, 26 Apr 2005 22:04:10 +0200
    To: akpm@osdl.org, marcelo.tosatti@cyclades.com
    
    

    The

    Andrew Morton:
      o rwsem: Make rwsems use interrupt disabling spinlocks

    change in 2.4.31-pre1 has a typo: one occurrence of spin_unlock() was
    changed to spin_unlock_restore() instead of spin_unlock_irqrestore()
    as was obviously the intention. Since spin_unlock_restore() doesn't
    exist, this results in linkage errors on x86_64 and other archs using
    CONFIG_RWSEM_GENERIC_SPINLOCK.

    Trival fix below.

    Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>

    --- linux-2.4.31-pre1/lib/rwsem-spinlock.c.~1~ 2005-04-26 19:12:52.000000000 +0200
    +++ linux-2.4.31-pre1/lib/rwsem-spinlock.c 2005-04-26 21:16:05.000000000 +0200
    @@ -269,7 +269,7 @@ void fastcall __up_read(struct rw_semaph
             if (--sem->activity==0 && !list_empty(&sem->wait_list))
                     sem = __rwsem_wake_one_writer(sem);
     
    - spin_unlock_restore(&sem->wait_lock, flags);
    + spin_unlock_irqrestore(&sem->wait_lock, flags);
     
             rwsemtrace(sem,"Leaving __up_read");
     }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Bodo Eggert: "Re: [PATCH] private mounts"

    Relevant Pages

    • Re: [PATCH 2.4.31-pre1] rwsem-spinlock linkage error
      ... > o rwsem: Make rwsems use interrupt disabling spinlocks ... this results in linkage errors on x86_64 and other archs using ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Linux 2.4.31-pre1
      ... I'm planning on moving the v2.4 repository along with the full ... history information to a git repository soon. ... o rwsem: Make rwsems use interrupt disabling spinlocks ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] fs/compat.c: rwsem instead of BKL around ioctl32_hash_table
      ... Roland Dreier wrote: ... It seems that an rwsem would be more appropriate, ... > since this would allow multiple lookups to occur in parallel (and also ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: downgrade_write replacement in remap_file_pages
      ... As a first step, David, could you please take a look into ... It appears my rwsem testsuite didn't have a downgrade write test. ... * - writers are only woken if wakewrite is non-zero ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH/RFC] Futex mmap_sem deadlock
      ... A yet further way would be to make a second kind of rwsem; ... changing the semantics of the mmap_sem lock. ... making rwsems unfair - something I think will be a really bad idea. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)