target: return SAM_STAT_TASK_SET_FULL for TCM_OUT_OF_RESOURCES
authorMike Christie <mchristi@redhat.com>
Wed, 25 Oct 2017 16:47:14 +0000 (11:47 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 22:01:49 +0000 (15:01 -0700)
commita271eac46a9a2457f4e8c757f9b7fc92a445cf48
tree911ac9371723230788ad383b899307f5ec5efc78
parent55435badda8bd8e4c97a8b6c3fa9eef79b02fe44
target: return SAM_STAT_TASK_SET_FULL for TCM_OUT_OF_RESOURCES

TCM_OUT_OF_RESOURCES is getting translated to
TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE which seems like a heavy
error when we just cannot allocate a resource that may be
allocatable later. This has us translate TCM_OUT_OF_RESOURCES
to SAM_STAT_TASK_SET_FULL instead.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c