commit | f83e826181f7f8fb152e4190d03854fc3a5dd040 | [log] [tgz] |
---|---|---|
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | Mon Apr 04 00:15:02 2011 +0200 |
committer | Jens Axboe <jaxboe@fusionio.com> | Tue Apr 05 23:52:49 2011 +0200 |
tree | 989f440665d529587fcc6365b1968e2b29fb7c94 | |
parent | a63a5cf84dac7a23a57c800eea5734701e7d3c04 [diff] |
block: fix request sorting at unplug Comparison function for list_sort() must be anticommutative, otherwise it is not sorting in ordinary meaning. But fortunately list_sort() always check ((*cmp)(priv, a, b) <= 0) it not distinguish negative and zero, so comparison function can implement only less-or-equal instead of full three-way comparison. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>