mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
target: Send UA upon LUN RESET tmr completion
SAM mandates that an BUS DEVICE RESET FUNCTION OCCURRED UA needs to be send after a LUN RESET tmr has completed. (Update to use target_ua_allocate_lun - hch) Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
3dd348fcaa
commit
b5aafb16eb
@ -2983,6 +2983,11 @@ static void target_tmr_work(struct work_struct *work)
|
|||||||
ret = core_tmr_lun_reset(dev, tmr, NULL, NULL);
|
ret = core_tmr_lun_reset(dev, tmr, NULL, NULL);
|
||||||
tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE :
|
tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE :
|
||||||
TMR_FUNCTION_REJECTED;
|
TMR_FUNCTION_REJECTED;
|
||||||
|
if (tmr->response == TMR_FUNCTION_COMPLETE) {
|
||||||
|
target_ua_allocate_lun(cmd->se_sess->se_node_acl,
|
||||||
|
cmd->orig_fe_lun, 0x29,
|
||||||
|
ASCQ_29H_BUS_DEVICE_RESET_FUNCTION_OCCURRED);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TMR_TARGET_WARM_RESET:
|
case TMR_TARGET_WARM_RESET:
|
||||||
tmr->response = TMR_FUNCTION_REJECTED;
|
tmr->response = TMR_FUNCTION_REJECTED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user