Make internal memory layout more cache friendly

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5315 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-02-26 02:32:39 +00:00
parent 5bb79dd23e
commit d59230f2fd
+3 -3
View File
@@ -2379,9 +2379,6 @@ struct scst_dev_registrant {
struct scst_device {
unsigned int type; /* SCSI type of the device */
/* Set if reserved via the SPC-2 SCSI RESERVE command. */
struct scst_session *reserved_by;
/*************************************************************
** Dev's flags. Updates serialized by dev_lock or suspended
** activity
@@ -2468,6 +2465,9 @@ struct scst_device {
/* List of commands with lock, if dedicated threads are used */
struct scst_cmd_threads dev_cmd_threads;
/* Set if reserved via the SPC-2 SCSI RESERVE command. */
struct scst_session *reserved_by;
/**********************************************************************
* Persistent reservation fields. Protected as follows:
* - Reading PR data must be protected via scst_pr_read_lock() /