]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix SPC-2 RELEASE bug for multi-session iSCSI client setups
authorBernhard Kohl <Riedel-und-Kohl@t-online.de>
Sun, 13 May 2012 21:39:37 +0000 (23:39 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 14 May 2012 22:13:50 +0000 (15:13 -0700)
commit0bc8b78c66027e97b5e43a5762f80ccf9b4ae7bc
tree0b36996acd203023c98c627ec90cee41abf70f49
parentc1d36258c7ed820f74fb8e841c770e3f028b1856
target: Fix SPC-2 RELEASE bug for multi-session iSCSI client setups

This patch addresses a bug in a special case for target core SPC-2 RELEASE
logic where the same physical client (eg: iSCSI InitiatorName) with
differing iSCSI session identifiers (ISID) is allowed to incorrectly release
the same client's SPC-2 reservation from the non reservation holding path.

Note this bug is specific to iscsi-target w/ SPC-2 reservations, and
with the default enforce_pr_isids=1 device attr setting in target-core
controls if a InitiatorName + different ISID reservations are handled
the same as a single iSCSI client entity.

Signed-off-by: Bernhard Kohl <bernhard.kohl@gmx.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c