dm thin: add mappings to end of prepared_* lists
authorMike Snitzer <snitzer@redhat.com>
Wed, 11 Dec 2013 19:01:20 +0000 (14:01 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2014 15:14:25 +0000 (10:14 -0500)
commitdaec338bbdaa96ba5b14c4777603e65ef74c769b
treea0798a5cddec99ad1bd7cda0b2b9a33164032e24
parent8d30abff758b5f6c71343b7da6bb5de129a76c08
dm thin: add mappings to end of prepared_* lists

Mappings could be processed in descending logical block order,
particularly if buffered IO is used.  This could adversely affect the
latency of IO processing.  Fix this by adding mappings to the end of the
'prepared_mappings' and 'prepared_discards' lists.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
drivers/md/dm-thin.c