target: add sense code INSUFFICIENT REGISTRATION RESOURCES
authortangwenji <tang.wenji@zte.com.cn>
Mon, 21 Aug 2017 12:55:41 +0000 (20:55 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:45:23 +0000 (14:45 -0700)
commit79dd6f2fd170e19f979d31cd1ebc9eea6de1a75f
treedc3f51977c37b8663b7ac69742940181516bf953
parente437fa3e5d1fde522fcc345ab1fe32a671b943f0
target: add sense code INSUFFICIENT REGISTRATION RESOURCES

If a PERSISTENT RESERVE OUT command with a REGISTER service action or a
REGISTER AND IGNORE EXISTING KEY service action or REGISTER AND MOVE
service action is attempted, but there are insufficient device server
resources to complete the operation, then the command shall be terminated
with CHECK CONDITION status, with the sense key set to ILLEGAL REQUEST,and
the additonal sense code set to INSUFFICIENT REGISTRATION RESOURCES.

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c
drivers/target/target_core_transport.c
include/target/target_core_base.h