[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080613021542.6ca9e6b5@linux360.ro>
Date: Fri, 13 Jun 2008 02:15:42 +0300
From: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
To: righi.andrea@...il.com
Cc: tzanussi@...il.com, penberg@...helsinki.fi,
akpm@...ux-foundation.org, compudj@...stal.dyndns.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] relay: Fix race condition which occurs when reading
across CPUs.
On Fri, 13 Jun 2008 00:58:01 +0200 (MEST)
Andrea Righi <righi.andrea@...il.com> wrote:
> If you just break here buf->rw_lock will be unlocked twice. Maybe a
> better way is:
> if (desc->error < 0)
> goto out;
> ...
> } while (desc->count && ret);
> spin_unlock_irqrestore(&buf->rw_lock, flags);
> out:
> mutex_unlock(&filp->f_path.dentry->d_inode->i_mutex);
>
> return desc->written;
Thanks, I did not notice. Will fix and resubmit.
Eduard
--
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