rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)
Subsystems (3)
PATCH 1/1 rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/infiniband/hw/qib/qib_qp.c
Signed-off-by Monam Agarwal <[email protected]>
--- drivers/infiniband/hw/qib/qib_qp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/infiniband/hw/qib/qib_qp.c +3 -3
@@ -252,10 +252,10 @@ static void remove_qp(struct qib_ibdev *dev, struct qib_qp *qp)if (ibp->qp0 == qp) {atomic_dec (&qp->refcount); -rcu_assign_pointer (ibp->qp0,NULL ); +RCU_INIT_POINTER (ibp->qp0,NULL ); }else if (ibp->qp1 == qp) {atomic_dec (&qp->refcount); -rcu_assign_pointer (ibp->qp1,NULL ); +RCU_INIT_POINTER (ibp->qp1,NULL ); }else {struct qib_qp *q, **qpp;
@@ -303,7 +303,7 @@ unsigned qib_free_all_qps(struct qib_devdata *dd)spin_lock_irqsave (&dev->qpt_lock, flags);for (n =0 ; n < dev->qp_table_size; n++) { qp = dev->qp_table[n]; -rcu_assign_pointer (dev->qp_table[n],NULL ); +RCU_INIT_POINTER (dev->qp_table[n],NULL );for (; qp; qp = qp->next) qp_inuse++;
Signature · 1 line
1.7.9.5
Quoted 3 lines · Monam Agarwal
This patch replaces
rcu_assign_pointer(x, NULL)withRCU_INIT_POINTER(x, NULL)indrivers/infiniband/hw/qib/qib_qp.cSigned-off-by Monam Agarwal <[email protected]>
Reviewed-by Paul E. McKenney <[email protected]>
Quoted 33 lines
--- drivers/infiniband/hw/qib/qib_qp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/infiniband/hw/qib/qib_qp.c +3
-3@@ -252,10 +252,10 @@ static void remove_qp(struct qib_ibdev *dev, struct qib_qp *qp)if (ibp->qp0 == qp) {atomic_dec (&qp->refcount); -rcu_assign_pointer (ibp->qp0,NULL ); +RCU_INIT_POINTER (ibp->qp0,NULL ); }else if (ibp->qp1 == qp) {atomic_dec (&qp->refcount); -rcu_assign_pointer (ibp->qp1,NULL ); +RCU_INIT_POINTER (ibp->qp1,NULL ); }else {struct qib_qp *q, **qpp;@@ -303,7 +303,7 @@ unsigned qib_free_all_qps(struct qib_devdata *dd)spin_lock_irqsave (&dev->qpt_lock, flags);for (n =0 ; n < dev->qp_table_size; n++) { qp = dev->qp_table[n]; -rcu_assign_pointer (dev->qp_table[n],NULL ); +RCU_INIT_POINTER (dev->qp_table[n],NULL );for (; qp; qp = qp->next) qp_inuse++;Signature · 1 line
1.7.9.5
David Miller
maintainerMany of your patches, such as this one, all have the same exact subject line.
This makes it impossible to scan the subject lines and have some idea what area a commit makes changes.
I would really suggest that you use a subject prefix that references the driver or subsystem, so for this one:
Subject: [PATCH N/M] infiniband: Use rcu_assign_pointer(x, NULL instead) of RCU_INIT_POINTER(x, NULL)
and likewise for all of your other patches.