dm bio prison: implement per bucket locking in the dm_bio_prison hash table
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 5 Jun 2014 14:23:09 +0000 (15:23 +0100)
committerMike Snitzer <snitzer@redhat.com>
Wed, 11 Jun 2014 20:48:54 +0000 (16:48 -0400)
commitadcc44472bacb227ebc0b1a8876efa5302474338
tree594f3024476830cb98887266b282307cc960dd3d
parent11f0431be2f99c574a65c6dfc0ca205511500f29
dm bio prison: implement per bucket locking in the dm_bio_prison hash table

Split the single per bio-prison lock by using per bucket locking.  Per
bucket locking benefits both dm-thin and dm-cache targets by reducing
bio-prison lock contention.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bio-prison.c