From: tangwenji <tang.wenji@xxxxxxxxxx> Reducing the count should be alua_tg_pt_gps_count instead of alua_tg_pt_gps_counter when free alua group. Signed-off-by: tangwenji <tang.wenji@xxxxxxxxxx> --- drivers/target/target_core_alua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_alua.c b/drivers/target/target_core_alua.c index e09f0cf..4808654 100644 --- a/drivers/target/target_core_alua.c +++ b/drivers/target/target_core_alua.c @@ -1761,7 +1761,7 @@ void core_alua_free_tg_pt_gp( */ spin_lock(&dev->t10_alua.tg_pt_gps_lock); list_del(&tg_pt_gp->tg_pt_gp_list); - dev->t10_alua.alua_tg_pt_gps_counter--; + dev->t10_alua.alua_tg_pt_gps_count--; spin_unlock(&dev->t10_alua.tg_pt_gps_lock); /* -- 2.5.0.windows.1