[PATCH] rw_semaphores, optimisations

From: D.W.Howells (dhowells@astarte.free-online.co.uk)
Date: Sat Apr 21 2001 - 20:27:20 EDT

  • Next message: joker: "dhcpd help please"

    This patch (made against linux-2.4.4-pre6) makes a number of changes to the
    rwsem implementation:

     (1) Fixes a subtle contention bug between up_write and the down_* functions.

     (2) Optimises the i386 fastpath implementation and changed the slowpath
         implementation to aid it.
         - The arch/i386/lib/rwsem.c is now gone.
         - Better inline asm constraints have been applied.

     (3) Changed the sparc64 fastpath implementation to use revised slowpath
         interface.
         [Dave Miller: can you check this please]

     (4) Makes the generic spinlock implementation non-inline.
         - lib/rwsem.c has been duplicated to lib/rwsem-spinlock.c and a
           slightly different algorithm has been created. This one is simpler
           since it does not have to use atomic operations on the counters as
           all accesses to them are governed by a blanket spinlock.

    David



    -
    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/



    This archive was generated by hypermail 2b29 : Sat Apr 21 2001 - 20:33:05 EDT