login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
12
Re: [PATCH 2/3] relay: Fix race condition which occurs when reading across CPUs.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Eduard - Gabriel Munteanu <eduard.munteanu@...>
To: <righi.andrea@...>
Cc: <tzanussi@...>, <penberg@...>, <akpm@...>, <compudj@...>, <linux-kernel@...>
Subject:
Re: [PATCH 2/3] relay: Fix race condition which occurs when reading across CPUs.
Date: Thursday, June 12, 2008 - 7:15 pm
On Fri, 13 Jun 2008 00:58:01 +0200 (MEST) Andrea Righi <righi.andrea@gmail.com> wrote:
quoted text
> 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 --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 2/3] relay: Fix race condition which occurs when read...
, Eduard - Gabriel Munteanu...
, (Thu Jun 12, 4:26 pm)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ...
, Andrea Righi
, (Thu Jun 12, 6:58 pm)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ...
, Eduard - Gabriel Munteanu...
, (Thu Jun 12, 7:15 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #10493] mips BCM47XX compile error
Ingo Molnar
[patch 02/13] syslets: add syslet.h include file, user API/ABI definitions
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrea Arcangeli
[PATCH 00 of 11] mmu notifier #v16
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
Mark Lord
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
849 guests
online.
Online users
strcmp
eleanorwarner43
forgive13
Nelson
Syndicate