login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
14
Re: [patch] sunrpc: make closing of old temporary sockets work (was: problems with lockd in 2.6.22.6)
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
J. Bruce Fields <bfields@...>
To: Wolfgang Walter <wolfgang.walter@...>
Cc: Neil Brown <neilb@...>, <trond.myklebust@...>, <netdev@...>, <nfs@...>, <linux-kernel@...>
Subject:
Re: [patch] sunrpc: make closing of old temporary sockets work (was: problems with lockd in 2.6.22.6)
Date: Friday, September 14, 2007 - 10:29 am
On Fri, Sep 14, 2007 at 11:12:30AM +0200, Wolfgang Walter wrote:
quoted text
> Am Mittwoch, 12. September 2007 21:55 schrieb J. Bruce Fields: > > On Wed, Sep 12, 2007 at 09:40:57PM +0200, Wolfgang Walter wrote: > > > On Wednesday 12 September 2007, J. Bruce Fields wrote: > > > > On Wed, Sep 12, 2007 at 04:14:06PM +0200, Neil Brown wrote: > > > > > So it is in 2.6.21 and later and should probably go to .stable for > > > > > .21 and .22. > > > > > > > > > > Bruce: for you :-) > > > > > > > > OK, thanks! But, (as is alas often the case) I'm still confused: > > > > > if (!test_and_set_bit(SK_OLD, &svsk->sk_flags)) > > > > > continue; > > > > > - if (atomic_read(&svsk->sk_inuse) || test_bit(SK_BUSY, > > > > > &svsk->sk_flags)) + if (atomic_read(&svsk->sk_inuse) > 1 > > > > > + || test_bit(SK_BUSY, &svsk->sk_flags)) > > > > > continue; > > > > > atomic_inc(&svsk->sk_inuse); > > > > > list_move(le, &to_be_aged); > > > > > > > > What is it that ensures svsk->sk_inuse isn't incremented or SK_BUSY set > > > > after that test? Not all the code that does either of those is under > > > > the same serv->sv_lock lock that this code is. > > > > > > This should not matter - SK_CLOSED may be set at any time. > > > > > > svc_age_temp_sockets only detaches the socket, sets SK_CLOSED and then > > > enqueues it. If SK_BUSY is set its already enqueued and svc_sock_enqueue > > > ensures that it is not enqueued twice. > > > > Oh, got it. And the list manipulation is safe thanks to sv_lock. Neat, > > thanks. Can you verify that this solves your problem? > > Patch works fine here.
Great, thanks again! --b. -
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:
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, Neil Brown
, (Wed Sep 12, 10:14 am)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, J. Bruce Fields
, (Wed Sep 12, 2:42 pm)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, Wolfgang Walter
, (Wed Sep 12, 3:40 pm)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, J. Bruce Fields
, (Wed Sep 12, 3:55 pm)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, Wolfgang Walter
, (Fri Sep 14, 5:12 am)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, J. Bruce Fields
, (Fri Sep 14, 10:29 am)
Re: [patch] sunrpc: make closing of old temporary sockets wo...
, Wolfgang Walter
, (Wed Sep 12, 6:18 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Arjan van de Ven
[Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in
Tilman Schmidt
git guidance
Vu Pham
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
David Miller
Re: Git and GCC
Mike
I don't want the .git directory next to my code.
Steffen Prohaska
merge vs rebase: Is visualization in gitk the only problem?
David Kastrup
What is the idea for bare repositories?
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
GVG GVG
ssh_exchange_identification: Connection closed by remote host
Falk Brockerhoff
ftp-proxy and no route to host issue
Pieter Verberne
Remove escape characters from file
linux-netdev
:
Chuck Lever
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Stefan Richter
Re: [GIT]: Networking
jamal
Re: [LARTC] ifb and ppp
Latest forum posts
usb mic not detected
29 minutes ago
Applications and Utilities
Add ext2 inode field
9 hours ago
Linux kernel
the kernel how to power off the machine
19 hours ago
Linux kernel
struct gendisk via request_queue
21 hours ago
Linux kernel
page initialization during kernel initialization
1 day ago
Linux kernel
Read Transport Layer Data form network packets (tcp/ip)
2 days ago
Linux kernel
Getting blinking screen in Fedora 9
2 days ago
Linux general
Problem with kernel + libata
3 days ago
Linux kernel
How to detect usb device insertioin and removal event ?
3 days ago
Linux general
toshiba m30x-129 herbinaiton problem
3 days ago
Hardware
Show all forums...
Recent Tags
Linux
Linus Torvalds
2.6.27-rc8
-rc8
quote
bugs
-rc
2.6.27
Intel
more tags
Colocation donated by:
Who's online
There are currently
4 users
and
978 guests
online.
Online users
sci3ntist
kingneutron
thorfinn@kernel...
Anusha
Syndicate
speck-geostationary