lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 9/10] dm: Remove redundant spin lock in dec_pending()
    Remove redundant spin lock in dec_pending()
    --- diff/drivers/md/dm.c 2004-02-10 16:11:50.000000000 +0000
    +++ source/drivers/md/dm.c 2004-02-10 16:12:10.000000000 +0000
    @@ -217,14 +217,8 @@
    */
    static inline void dec_pending(struct dm_io *io, int error)
    {
    - static spinlock_t _uptodate_lock = SPIN_LOCK_UNLOCKED;
    - unsigned long flags;
    -
    - if (error) {
    - spin_lock_irqsave(&_uptodate_lock, flags);
    + if (error)
    io->error = error;
    - spin_unlock_irqrestore(&_uptodate_lock, flags);
    - }

    if (atomic_dec_and_test(&io->io_count)) {
    if (atomic_dec_and_test(&io->md->pending))
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 14:00    [W:0.020 / U:29.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site