]> git.baikalelectronics.ru Git - kernel.git/commit
target: Add register_type and preempt_type enums to clarify code
authorAndy Grover <agrover@redhat.com>
Thu, 16 May 2013 17:40:54 +0000 (10:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:04:25 +0000 (00:04 -0700)
commit2c3847c9ab0a2bbf1b027fd42973661f622a4e2d
tree5ce5e96b2b3c478f38469ea8cb7ea19ed46a6012
parent9e1371520a92846c7d09a055043a55a8e212b7aa
target: Add register_type and preempt_type enums to clarify code

core_scsi3_enulate_pro_register took an 'ignore_key' parameter that
really distinguished between REGISTER and REGISTER_AND_IGNORE_EXISTING_KEY
registration types, which was a little confusing. Same situation for
PREEMPT and PREEMPT_AND_ABORT. Use enums to add a little more
descriptiveness to the code.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c