diff mbox series

target:tcmu free cmd->bdi in tcmu_check_and_free_pending_cmd

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

Commit Message

tangwenji March 9, 2019, 1:27 p.m. UTC
From: tangwenji <tang.wenji@zte.com.cn>

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
---
 drivers/target/target_core_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;