dm thin: use per thin device deferred bio lists
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Mar 2014 01:17:14 +0000 (21:17 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 31 Mar 2014 18:14:15 +0000 (14:14 -0400)
commitc140e1c4e23bdaf0a5c00b6a8b6d18f259d39a00
treebd84c5be199d67b45c18f0bf17b9033650c57444
parent760fe67e539b2f1a95dbb4c9700140eccdb1c0c1
dm thin: use per thin device deferred bio lists

The thin-pool previously only had a single deferred_bios list that would
collect bios for all thin devices in the pool.  Split this per-pool
deferred_bios list out to per-thin deferred_bios_list -- doing so
enables increased parallelism when processing deferred bios.  And now
that each thin device has it's own deferred_bios_list we can sort all
bios in the list using logical sector.  The requeue code in error
handling path is also cleaner as a side-effect.

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