Message ID | 1552138026-5016-1-git-send-email-hndksztwj@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | target:tcmu free cmd->bdi in tcmu_check_and_free_pending_cmd | expand |
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 5831e0e..bb5d85d 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -1616,7 +1616,7 @@ static void tcmu_dev_call_rcu(struct rcu_head *p) static int tcmu_check_and_free_pending_cmd(struct tcmu_cmd *cmd) { if (test_bit(TCMU_CMD_BIT_EXPIRED, &cmd->flags)) { - kmem_cache_free(tcmu_cmd_cache, cmd); + tcmu_free_cmd(cmd); return 0; } return -EINVAL;