]> git.baikalelectronics.ru Git - kernel.git/commit
target: return CONFLICT only when SA key unmatched
authorSteven Allen <steven.allen@purestorage.com>
Fri, 24 Oct 2014 22:18:26 +0000 (15:18 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 3 Nov 2014 06:04:57 +0000 (22:04 -0800)
commite013e1bf9482aa9200c63bb0fccd3f52cf5e3093
tree3fb9e947540d6cc9ae2368d74d3d175fee2afdf7
parentdcfd2bda0ecb8702c881f452b16e77d8117a5f8e
target: return CONFLICT only when SA key unmatched

PREEMPT (and PREEMPT AND ABORT) should return CONFLICT iff a specified
SERVICE ACTION RESERVATION KEY is specified and matches no existing
persistent reservation.

Without this patch, a PREEMPT will return CONFLICT if either all
reservations are held by the initiator (self preemption) or there is
nothing to preempt. According to the spec, both of these cases should
succeed.

Signed-off-by: Steven Allen <steven.allen@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c