scsi: target/core: Rework the SPC-2 reservation handling code
authorBart Van Assche <bvanassche@acm.org>
Tue, 2 Apr 2019 19:58:06 +0000 (12:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 13 Apr 2019 00:20:05 +0000 (20:20 -0400)
commitfae43461f8f227a83f8edc3b15325188b56aa023
treee2162b9477b0bf0757a4df8a0783383845de9cc7
parent63f7479439c95bcd49b7dd4af809862c316c71a3
scsi: target/core: Rework the SPC-2 reservation handling code

Instead of tracking the initiator that established an SPC-2 reservation,
track the session through which the SPC-2 reservation has been
established. This patch does not change any functionality.

Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c
drivers/target/target_core_pr.c
drivers/target/target_core_pr.h
drivers/target/target_core_tmr.c
include/target/target_core_base.h
include/target/target_core_fabric.h