diff options
author | JackieLiu <liuyun01@kylinos.cn> | 2016-11-29 04:57:30 +0100 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-11-29 23:46:23 +0100 |
commit | 1a0ec5c30c37d29e4435a45e75c896f91af970bd (patch) | |
tree | ea7cad93639ad3988d52a56237c3d944d0867610 /drivers/md/raid5-cache.c | |
parent | md/raid5-cache: remove the unnecessary next_cp_seq field from the r5l_log (diff) | |
download | linux-1a0ec5c30c37d29e4435a45e75c896f91af970bd.tar.xz linux-1a0ec5c30c37d29e4435a45e75c896f91af970bd.zip |
md/raid5-cache: do not need to set STRIPE_PREREAD_ACTIVE repeatedly
R5c_make_stripe_write_out has set this flag, do not need to set again.
Signed-off-by: JackieLiu <liuyun01@kylinos.cn>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5-cache.c')
-rw-r--r-- | drivers/md/raid5-cache.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index a46f547da261..e786d4e555cc 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c @@ -1247,8 +1247,6 @@ static void r5c_flush_stripe(struct r5conf *conf, struct stripe_head *sh) atomic_inc(&conf->active_stripes); r5c_make_stripe_write_out(sh); - if (!test_and_set_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) - atomic_inc(&conf->preread_active_stripes); raid5_release_stripe(sh); } |