Fixed issue of unit attention being created for the wrong nexus. Switched to using another sense add function. Signed-off-by: Mike Anderson <andmike@xxxxxxxxxxxxxxxxxx> --- usr/spc.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/spc.c b/usr/spc.c index 22f0277..ea901e2 100644 --- a/usr/spc.c +++ b/usr/spc.c @@ -1205,9 +1205,8 @@ static int spc_pr_clear(int host_no, struct scsi_cmd *cmd) registration_siblings) { /* we don't send myself */ if (sibling != reg) - ua_sense_add_other_it_nexus(sibling->nexus_id, - cmd->dev, - ASC_RESERVATIONS_PREEMPTED); + ua_sense_add_it_nexus(sibling->nexus_id, + cmd->dev, ASC_RESERVATIONS_PREEMPTED); list_del(&sibling->registration_siblings); free(sibling); } -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html