[PATCH] locks: fix list insertion when lock is split in two

2015-02-17 Thread Jeff Layton
Al reported that he had seen some LTP fcntl11 and fcntl21 test failures since the merge window had opened. In the case where we're splitting a lock in two, the current code the new "left" lock in the incorrect spot. It's inserted just before "right" when it should instead be inserted just before

[PATCH] locks: fix list insertion when lock is split in two

2015-02-17 Thread Jeff Layton
Al reported that he had seen some LTP fcntl11 and fcntl21 test failures since the merge window had opened. In the case where we're splitting a lock in two, the current code the new left lock in the incorrect spot. It's inserted just before right when it should instead be inserted just before the