diff options
author | Shaohua Li <shli@kernel.org> | 2013-08-27 11:50:39 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-08-28 03:55:53 +0200 |
commit | 773ca82fa1ee58dd1bf88b6a5ca385ec83a2cac6 (patch) | |
tree | 9dd6c1d72a9fab76d668ae2500e98003290c75a4 /mm | |
parent | md: avoid deadlock when dirty buffers during md_stop. (diff) | |
download | linux-773ca82fa1ee58dd1bf88b6a5ca385ec83a2cac6.tar.xz linux-773ca82fa1ee58dd1bf88b6a5ca385ec83a2cac6.zip |
raid5: make release_stripe lockless
release_stripe still has big lock contention. We just add the stripe to a llist
without taking device_lock. We let the raid5d thread to do the real stripe
release, which must hold device_lock anyway. In this way, release_stripe
doesn't hold any locks.
The side effect is the released stripes order is changed. But sounds not a big
deal, stripes are never handled in order. And I thought block layer can already
do nice request merge, which means order isn't that important.
I kept the unplug release batch, which is unnecessary with this patch from lock
contention avoid point of view, and actually if we delete it, the stripe_head
release_list and lru can share storage. But the unplug release batch is also
helpful for request merge. We probably can delay wakeup raid5d till unplug, but
I'm still afraid of the case which raid5d is running.
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions