Commit 6ceb6331 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe

RDMA/uverbs: Declare closing variable as boolean

The "closing" variable is used as boolean and set to "true" in one
place, update the declaration of that variable and their other
assignment to proper type.

Fixes: e951747a ("IB/uverbs: Rework the locking for cleaning up the ucontext")
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 12d6f669
...@@ -120,7 +120,7 @@ ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file, ...@@ -120,7 +120,7 @@ ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file,
rcu_read_lock(); rcu_read_lock();
ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID);
rcu_read_unlock(); rcu_read_unlock();
ucontext->closing = 0; ucontext->closing = false;
ucontext->cleanup_retryable = false; ucontext->cleanup_retryable = false;
#ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING #ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING
......
...@@ -1486,7 +1486,7 @@ struct ib_ucontext { ...@@ -1486,7 +1486,7 @@ struct ib_ucontext {
* it is set when we are closing the file descriptor and indicates * it is set when we are closing the file descriptor and indicates
* that mm_sem may be locked. * that mm_sem may be locked.
*/ */
int closing; bool closing;
bool cleanup_retryable; bool cleanup_retryable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment