From 02b5a958138d9c104983c0cf60d3c2262c7c98d9 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 26 Mar 2013 00:30:31 +0000 Subject: [PATCH] scst_pres: Disallow READs in exclusive access mode Disallow READS in exclusive access mode by initiators that do not hold the reservation. Disallow READS in exclusive access mode - all registrants by initiators that did not register the key. This behavior is required by SPC-4. This patch fixes a regression introduced on the trunk on June 29 2012 (r4392). PGR support in released versions, e.g. 2.2.1, works fine as far as I know. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4814 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 9e8732dcd..f42981752 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -212,7 +212,7 @@ enum scst_cdb_flags { SCST_FULLY_LOCAL_CMD = 0x0800, SCST_REG_RESERVE_ALLOWED = 0x1000, - SCST_WRITE_EXCL_ALLOWED = 0x4000, + SCST_WRITE_EXCL_ALLOWED = 0x2000, SCST_EXCL_ACCESS_ALLOWED = 0x4000, #ifdef CONFIG_SCST_TEST_IO_IN_SIRQ SCST_TEST_IO_IN_SIRQ_ALLOWED = 0x8000,