diff options
-rw-r--r-- | drivers/target/target_core_transport.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 0364534f8d46..e5088c059b4f 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -2983,6 +2983,11 @@ static void target_tmr_work(struct work_struct *work) | |||
2983 | ret = core_tmr_lun_reset(dev, tmr, NULL, NULL); | 2983 | ret = core_tmr_lun_reset(dev, tmr, NULL, NULL); |
2984 | tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE : | 2984 | tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE : |
2985 | TMR_FUNCTION_REJECTED; | 2985 | TMR_FUNCTION_REJECTED; |
2986 | if (tmr->response == TMR_FUNCTION_COMPLETE) { | ||
2987 | target_ua_allocate_lun(cmd->se_sess->se_node_acl, | ||
2988 | cmd->orig_fe_lun, 0x29, | ||
2989 | ASCQ_29H_BUS_DEVICE_RESET_FUNCTION_OCCURRED); | ||
2990 | } | ||
2986 | break; | 2991 | break; |
2987 | case TMR_TARGET_WARM_RESET: | 2992 | case TMR_TARGET_WARM_RESET: |
2988 | tmr->response = TMR_FUNCTION_REJECTED; | 2993 | tmr->response = TMR_FUNCTION_REJECTED; |