ib_srpt: Support systems with more than 255 CPU cores

Signed-off-by: Kirill Malkin <kirillmalkin.km@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2017-09-20 15:09:38 +00:00
parent 4851afc5cb
commit b39a0c64a2
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2498,9 +2498,9 @@ static bool srpt_is_target_enabled(struct scst_tgt *scst_tgt)
/*
* srpt_next_comp_vector() - Next completion vector >= sport->comp_vector
*/
static u8 srpt_next_comp_vector(struct srpt_port *sport)
static u16 srpt_next_comp_vector(struct srpt_port *sport)
{
u8 comp_vector;
u16 comp_vector;
mutex_lock(&sport->mutex);
comp_vector = cpumask_next(sport->comp_vector, &sport->comp_v_mask);
+2 -2
View File
@@ -379,7 +379,7 @@ struct srpt_rdma_ch {
struct list_head cmd_wait_list;
uint16_t pkey;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) || defined(RHEL_RELEASE_CODE)
u8 comp_vector;
u16 comp_vector;
#endif
bool using_rdma_cm;
bool processing_wait_list;
@@ -433,7 +433,7 @@ struct srpt_port {
struct list_head nexus_list;
struct scst_tgt *scst_tgt;
cpumask_t comp_v_mask;
u8 comp_vector;
u16 comp_vector;
bool enabled;
u8 port_id[64];
};