scsi: zfcp: group sort internal structure definitions for proximity

Have structures just before the structures that use them (without
disrupting sequences of using structures such as zfcp_unit and
zfcp_scsi_dev):

 - zfcp_adapter_mempool embedded in zfcp_adapter,

 - zfcp_latenc... embedded in zfcp_scsi_dev.

Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Steffen Maier 2018-11-08 15:44:43 +01:00 коммит произвёл Martin K. Petersen
Родитель eb67f93ffa
Коммит 21cb0bcc73
1 изменённых файлов: 29 добавлений и 29 удалений

Просмотреть файл

@ -91,18 +91,6 @@
struct zfcp_fsf_req; struct zfcp_fsf_req;
/* holds various memory pools of an adapter */
struct zfcp_adapter_mempool {
mempool_t *erp_req;
mempool_t *gid_pn_req;
mempool_t *scsi_req;
mempool_t *scsi_abort;
mempool_t *status_read_req;
mempool_t *sr_data;
mempool_t *gid_pn;
mempool_t *qtcb_pool;
};
struct zfcp_erp_action { struct zfcp_erp_action {
struct list_head list; struct list_head list;
int action; /* requested action code */ int action; /* requested action code */
@ -115,23 +103,16 @@ struct zfcp_erp_action {
struct timer_list timer; struct timer_list timer;
}; };
struct zfcp_latency_record { /* holds various memory pools of an adapter */
u32 min; struct zfcp_adapter_mempool {
u32 max; mempool_t *erp_req;
u64 sum; mempool_t *gid_pn_req;
}; mempool_t *scsi_req;
mempool_t *scsi_abort;
struct zfcp_latency_cont { mempool_t *status_read_req;
struct zfcp_latency_record channel; mempool_t *sr_data;
struct zfcp_latency_record fabric; mempool_t *gid_pn;
u64 counter; mempool_t *qtcb_pool;
};
struct zfcp_latencies {
struct zfcp_latency_cont read;
struct zfcp_latency_cont write;
struct zfcp_latency_cont cmd;
spinlock_t lock;
}; };
struct zfcp_adapter { struct zfcp_adapter {
@ -212,6 +193,25 @@ struct zfcp_port {
unsigned int starget_id; unsigned int starget_id;
}; };
struct zfcp_latency_record {
u32 min;
u32 max;
u64 sum;
};
struct zfcp_latency_cont {
struct zfcp_latency_record channel;
struct zfcp_latency_record fabric;
u64 counter;
};
struct zfcp_latencies {
struct zfcp_latency_cont read;
struct zfcp_latency_cont write;
struct zfcp_latency_cont cmd;
spinlock_t lock;
};
/** /**
* struct zfcp_unit - LUN configured via zfcp sysfs * struct zfcp_unit - LUN configured via zfcp sysfs
* @dev: struct device for sysfs representation and reference counting * @dev: struct device for sysfs representation and reference counting