[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130212162802.GQ3789@intel.com>
Date: Tue, 12 Feb 2013 08:28:02 -0800
From: Vinod Koul <vinod.koul@...el.com>
To: Dave Jiang <dave.jiang@...el.com>
Cc: djbw@...com, maciej.patelczyk@...el.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ioatdma: fix race between updating ioat->head and
IOAT_COMPLETION_PENDING
On Thu, Feb 07, 2013 at 02:38:32PM -0700, Dave Jiang wrote:
> There is a race that can hit during __cleanup() when the ioat->head pointer is
> incremented during descriptor submission. The __cleanup() can clear the
> PENDING flag when it does not see any active descriptors. This causes new
> submitted descriptors to be ignored because the COMPLETION_PENDING flag is
> cleared. This was introduced when code was adapted from ioatdma v1 to ioatdma
> v2. For v2 and v3, IOAT_COMPLETION_PENDING flag will be abandoned and a new
> flag IOAT_CHAN_ACTIVE will be utilized. This flag will also be protected under
> the prep_lock when being modified in order to avoid the race.
>
> Signed-off-by: Dave Jiang <dave.jiang@...el.com>
> Reviewed-by: Dan Williams <djbw@...com>
Applied, thanks
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists