Re: [PATCH 2/6] ipc/mqueue.c: Remove duplicated code
From: Peter Zijlstra
Date: Mon Oct 14 2019 - 08:37:41 EST
On Sat, Oct 12, 2019 at 07:49:54AM +0200, Manfred Spraul wrote:
> +static inline void __pipelined_op(struct wake_q_head *wake_q,
> struct mqueue_inode_info *info,
> + struct ext_wait_queue *this)
> {
> + list_del(&this->list);
> + wake_q_add(wake_q, this->task);
> /*
> * Rely on the implicit cmpxchg barrier from wake_q_add such
> * that we can ensure that updating receiver->state is the last
> @@ -937,7 +932,19 @@ static inline void pipelined_send(struct wake_q_head *wake_q,
> * yet, at that point we can later have a use-after-free
> * condition and bogus wakeup.
> */
> + this->state = STATE_READY;
^^^^^^^^^^ whitespace damage
> +}