Messages in this thread Patch in this message | | | Date | Tue, 10 Feb 2004 17:02:40 +0000 | From | Joe Thornber <> | 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/
| |