[stable request 3.6~3.10] two ARM spinlock fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

Please queue the following two fixes for 3.10.

15e7e5c1ebf556cd620c9b091e121091ac760f6d
("ARM: 7749/1: spinlock: retry trylock operation if strex fails on free lock")

00efaa0250939dc148e2d3104fb3c18395d24a2d 
("ARM: 7812/1: rwlocks: retry trylock operation if strex fails on free lock")


We found spin_trylock() occasionally fails without lock contention on 3.10.x
when running a simple test.

        for (i = 0; i < 1000000; i++) {
                if (!spin_trylock(&testlock)) {
                        printk("Get lock failed: %d!\n", i);
                        continue;
                }
                spin_unlock(&testlock);
        }

and the bug can be fixed by these two commits.

--
Li Zefan
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]