login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
7
Re: [NFS] 2.6.23-rc1-mm2
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Oleg Nesterov <oleg@...>
To: Trond Myklebust <trond.myklebust@...>
Cc: Neil Brown <neilb@...>, Andrew Morton <akpm@...>, Marc Dietrich <Marc.Dietrich@...>, Johannes Berg <johannes@...>, <nfs@...>, <linux-kernel@...>
Subject:
Re: [NFS] 2.6.23-rc1-mm2
Date: Tuesday, August 7, 2007 - 7:14 pm
On 08/07, Trond Myklebust wrote:
quoted text
> > On Wed, 2007-08-08 at 02:20 +0400, Oleg Nesterov wrote: > > > But. nfs4_renew_state() checks list_empty(&clp->cl_superblocks) under > > clp->cl_sem? So, if it is possible that clp->cl_renewd was scheduled > > at the time when nfs4_kill_renewd(), we can deadlock, no? Because > > nfs4_renew_state() needs clp->cl_sem to complete, but nfs4_kill_renewd() > > holds this sem, and waits for nfs4_renew_state() completion. > > They both take read locks,
Aaaaaaaaaah. Please ignore me, thanks!
quoted text
> which means that they can take them > simultaneously. AFAICS, the deadlock can only occur if something manages > to insert a request for a write lock after nfs4_kill_renewd() takes its > read lock, but before nfs4_renew_state() takes its read lock: > > 1) nfs4_kill_renewd() 2) nfs4_renew_state() 3) somebody else > ------------------- ------------------ ------------- > read lock > wait on (2) to complete > write lock <waits on (1)> > read lock <waits on (3), > because rw_semaphores > don't allow a read lock > request to jump a write > lock request> > > however as I explained earlier, the only process that can take a write > lock is the reclaimer daemon, but we _know_ that cannot be running (for > one thing, the reference count on nfs_client is zero, for the other, > there are no superblocks).
Oleg. -
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:
2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 2:09 am)
[-mm patch] fs/reiser4/plugin/: make 3 functions static
, Adrian Bunk
, (Tue Aug 14, 5:21 pm)
[-mm patch] make pm3fb_init() static again
, Adrian Bunk
, (Tue Aug 14, 5:21 pm)
2.6.23-rc1-mm2: MMC_ARMMMCI compile error
, Adrian Bunk
, (Wed Aug 8, 5:31 pm)
Re: 2.6.23-rc1-mm2: MMC_ARMMMCI compile error
, Pierre Ossman
, (Thu Aug 9, 8:03 am)
Re: 2.6.23-rc1-mm2
, Marc Dietrich
, (Fri Aug 3, 7:00 am)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Fri Aug 3, 12:38 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Trond Myklebust
, (Fri Aug 3, 1:03 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Oleg Nesterov
, (Fri Aug 3, 1:21 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Trond Myklebust
, (Tue Aug 7, 5:08 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Oleg Nesterov
, (Tue Aug 7, 5:37 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Trond Myklebust
, (Tue Aug 7, 6:05 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Oleg Nesterov
, (Tue Aug 7, 6:20 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Trond Myklebust
, (Tue Aug 7, 7:08 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Oleg Nesterov
, (Tue Aug 7, 7:14 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Johannes Berg
, (Mon Aug 6, 2:24 am)
Re: [NFS] 2.6.23-rc1-mm2
, Marc Dietrich
, (Mon Aug 6, 7:05 am)
Re: [NFS] 2.6.23-rc1-mm2
, Trond Myklebust
, (Mon Aug 6, 12:24 pm)
Re: [NFS] 2.6.23-rc1-mm2
, Marc Dietrich
, (Tue Aug 7, 8:09 am)
Re: [NFS] 2.6.23-rc1-mm2
, Johannes Berg
, (Mon Aug 6, 7:13 am)
Re: [NFS] 2.6.23-rc1-mm2
, Oleg Nesterov
, (Mon Aug 6, 6:53 am)
Re: [NFS] 2.6.23-rc1-mm2
, Johannes Berg
, (Mon Aug 6, 6:58 am)
Re: 2.6.23-rc1-mm2: Fix crash in sysfs_hash_and_remove
, Rafael J. Wysocki
, (Thu Aug 2, 1:31 pm)
Re: 2.6.23-rc1-mm2: Fix crash in sysfs_hash_and_remove
, Tejun Heo
, (Thu Aug 2, 1:34 pm)
Re: 2.6.23-rc1-mm2: Fix crash in sysfs_hash_and_remove
, Eric W. Biederman
, (Thu Aug 2, 2:19 pm)
[PATCH -mm] Fix section mismatch warnings in sound/pci/hda/
, Gabriel C
, (Thu Aug 2, 9:11 am)
Re: [PATCH -mm] Fix section mismatch warnings in sound/pci/h...
, Takashi Iwai
, (Thu Aug 2, 9:24 am)
Re: [PATCH -mm] Fix section mismatch warnings in sound/pci/h...
, Sam Ravnborg
, (Thu Aug 2, 12:32 pm)
Re: [PATCH -mm] Fix section mismatch warnings in sound/pci/h...
, Takashi Iwai
, (Thu Aug 2, 1:17 pm)
[PATCH -mm] linux-audit list is subscribers-only
, Gabriel C
, (Wed Aug 1, 7:59 pm)
Re: [PATCH -mm] linux-audit list is subscribers-only
, Randy Dunlap
, (Wed Aug 1, 9:30 pm)
INOTIFY=n , AUDIT*=y compile error
, Gabriel C
, (Wed Aug 1, 7:40 pm)
Re: 2.6.23-rc1-mm2
,
, (Wed Aug 1, 4:30 pm)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 4:40 pm)
Re: 2.6.23-rc1-mm2
, Torsten Kaiser
, (Wed Aug 1, 4:52 pm)
Re: 2.6.23-rc1-mm2
, Mel Gorman
, (Wed Aug 1, 7:40 pm)
Re: 2.6.23-rc1-mm2
, Andy Whitcroft
, (Thu Aug 2, 10:01 am)
Re: 2.6.23-rc1-mm2
, Torsten Kaiser
, (Thu Aug 2, 1:44 pm)
Re: 2.6.23-rc1-mm2
, Torsten Kaiser
, (Thu Aug 2, 12:38 am)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 5:17 pm)
Re: 2.6.23-rc1-mm2 (checks-for-80wire-cable-use-in-pata_via)
, Laurent Riffard
, (Wed Aug 1, 4:13 pm)
[PATCH -mm] Fix a section mismatch warning
, Gabriel C
, (Wed Aug 1, 11:19 am)
[PATCH -mm] Fix defined but not used warning in drivers/kvm/...
, Gabriel C
, (Wed Aug 1, 10:23 am)
Re: [PATCH -mm] Fix defined but not used warning in drivers/...
, Avi Kivity
, (Wed Aug 1, 2:35 pm)
drivers/scsi/advansys.c compile error ( Re: 2.6.23-rc1-mm2 )
, Gabriel C
, (Wed Aug 1, 9:01 am)
[PATCH] drivers/scsi/advansys.c: fix advansys_board_found co...
, Eugene Teo
, (Wed Aug 1, 9:39 am)
Re: [PATCH] drivers/scsi/advansys.c: fix advansys_board_foun...
, Matthew Wilcox
, (Wed Aug 1, 9:55 am)
Re: [PATCH] drivers/scsi/advansys.c: fix advansys_board_foun...
, Gabriel C
, (Wed Aug 1, 10:27 am)
Re: [PATCH] drivers/scsi/advansys.c: fix advansys_board_foun...
, Matthew Wilcox
, (Wed Aug 1, 10:32 am)
Re: [PATCH] drivers/scsi/advansys.c: fix advansys_board_foun...
, Gabriel C
, (Wed Aug 1, 10:46 am)
Re: [PATCH] drivers/scsi/advansys.c: fix advansys_board_foun...
, Gabriel C
, (Wed Aug 1, 9:54 am)
[PATCH] fix slown down printk on boot compile error
, Heiko Carstens
, (Wed Aug 1, 7:16 am)
Re: [PATCH] fix slown down printk on boot compile error
, Randy Dunlap
, (Wed Aug 1, 12:32 pm)
Re: 2.6.23-rc1-mm2
, Gabriel C
, (Wed Aug 1, 6:56 am)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 1:26 pm)
Re: 2.6.23-rc1-mm2
, Gabriel C
, (Wed Aug 1, 1:39 pm)
unionfs compile error ( Re: 2.6.23-rc1-mm2 )
, Gabriel C
, (Wed Aug 1, 6:33 am)
Re: unionfs compile error ( Re: 2.6.23-rc1-mm2 )
, Andrew Morton
, (Wed Aug 1, 1:22 pm)
Re: unionfs compile error ( Re: 2.6.23-rc1-mm2 )
, Gabriel C
, (Wed Aug 1, 1:35 pm)
Re: unionfs compile error ( Re: 2.6.23-rc1-mm2 )
, Josef Sipek
, (Wed Aug 1, 1:27 pm)
Re: unionfs compile error ( Re: 2.6.23-rc1-mm2 )
, Erez Zadok
, (Thu Aug 2, 12:29 pm)
[PATCH] prevent SSB compilation on s390 part 2
, Heiko Carstens
, (Wed Aug 1, 5:34 am)
Re: [PATCH] prevent SSB compilation on s390 part 2
, Heiko Carstens
, (Wed Aug 1, 10:43 am)
Re: [PATCH] prevent SSB compilation on s390 part 2
, Michael Buesch
, (Wed Aug 1, 10:54 am)
Re: [PATCH] prevent SSB compilation on s390 part 2
, John W. Linville
, (Wed Aug 1, 8:24 am)
Re: 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Wed Aug 1, 4:02 am)
Re: 2.6.23-rc1-mm2
, Segher Boessenkool
, (Mon Aug 6, 3:08 pm)
Re: 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Mon Aug 6, 3:34 pm)
Re: 2.6.23-rc1-mm2
, Segher Boessenkool
, (Mon Aug 6, 5:25 pm)
Re: 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Mon Aug 6, 6:34 pm)
Re: 2.6.23-rc1-mm2
, Segher Boessenkool
, (Mon Aug 6, 7:12 pm)
Re: 2.6.23-rc1-mm2
, Greg KH
, (Wed Aug 1, 12:36 pm)
Re: 2.6.23-rc1-mm2
, Paul Mackerras
, (Wed Aug 1, 6:32 am)
Re: 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Thu Aug 2, 6:14 am)
Re: 2.6.23-rc1-mm2
, Segher Boessenkool
, (Mon Aug 6, 3:10 pm)
Re: 2.6.23-rc1-mm2
, Kumar Gala
, (Fri Aug 3, 5:39 am)
Re: 2.6.23-rc1-mm2
, Segher Boessenkool
, (Mon Aug 6, 3:12 pm)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 4:13 am)
Re: 2.6.23-rc1-mm2
, Jiri Kosina
, (Wed Aug 1, 6:23 am)
Re: 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Thu Aug 2, 5:47 am)
Re: [linux-usb-devel] 2.6.23-rc1-mm2
, Alan Stern
, (Thu Aug 2, 10:20 am)
Re: [linux-usb-devel] 2.6.23-rc1-mm2
, Mariusz Kozlowski
, (Thu Aug 2, 10:32 am)
Re: [linux-usb-devel] 2.6.23-rc1-mm2
, Jiri Kosina
, (Thu Aug 2, 10:26 am)
Re: 2.6.23-rc1-mm2
, Ingo Molnar
, (Wed Aug 1, 4:16 am)
Re: 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-bufferca...
, Eric St-Laurent
, (Wed Aug 1, 3:36 am)
Re: 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-bufferca...
, Andrew Morton
, (Wed Aug 1, 3:46 am)
Re: 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-bufferca...
, Eric St-Laurent
, (Wed Aug 1, 4:04 am)
Re: 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-bufferca...
, Andrew Morton
, (Wed Aug 1, 4:30 am)
Re: 2.6.23-rc1-mm2
, Paul Mundt
, (Wed Aug 1, 2:25 am)
Re: 2.6.23-rc1-mm2
, Jason Wessel
, (Wed Aug 1, 8:22 am)
Re: 2.6.23-rc1-mm2
, Mike Frysinger
, (Wed Aug 1, 3:58 am)
Re: 2.6.23-rc1-mm2
, Paul Mundt
, (Wed Aug 1, 4:15 am)
Re: 2.6.23-rc1-mm2
, Mike Frysinger
, (Wed Aug 1, 5:04 am)
Re: 2.6.23-rc1-mm2
, Andrew Morton
, (Wed Aug 1, 4:10 am)
Re: 2.6.23-rc1-mm2
, Christoph Hellwig
, (Wed Aug 1, 9:45 am)
Re: 2.6.23-rc1-mm2
, Jason Wessel
, (Wed Aug 1, 9:57 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11209] 2.6.27-rc1 process time accounting
Vitaly V. Bursov
Re: Slow file transfer speeds with CFQ IO scheduler in some cases
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Ian Kent
[PATCH 1/4] autofs4 - check for invalid dentry in getpath
git
:
linux-netdev
:
David Miller
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
966 guests
online.
Online users
fuerteventurarr
zeekec
sreejithc
puntmuts
lilianit
cruiseschedules
Syndicate