Files
android_kernel_xiaomi_sm8450/drivers/md
Mikulas Patocka 724376a04d dm integrity: implement fair range locks
dm-integrity locks a range of sectors to prevent concurrent I/O or journal
writeback.  These locks were not fair - so that many small overlapping I/Os
could starve a large I/O indefinitely.

Fix this by making the range locks fair.  The ranges that are waiting are
added to the list "wait_list".  If a new I/O overlaps some of the waiting
I/Os, it is not dispatched, but it is also added to that wait list.
Entries on the wait list are processed in first-in-first-out order, so
that an I/O can't starve indefinitely.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2018-07-27 15:24:22 -04:00
..
2018-06-15 18:10:01 -03:00
2018-04-30 11:51:39 -04:00
2016-11-01 09:43:26 -06:00
2018-05-04 10:35:20 -04:00
2017-06-09 09:27:32 -06:00
2018-06-28 16:06:14 -04:00
2018-06-08 11:59:51 -04:00
2018-06-08 11:59:51 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-18 09:46:13 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00