Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2011 11:48:25 -0500
From:      Mark Saad <nonesuch@longcount.org>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        svn-src-stable-7@freebsd.org, src-committers@freebsd.org, svn-src-stable@freebsd.org, svn-src-all@freebsd.org, Rick Macklem <rmacklem@uoguelph.ca>, Rick Macklem <rmacklem@freebsd.org>
Subject:   Re: svn commit: r227549 - stable/7/sys/nfsclient
Message-ID:  <CAMXt9Nar8CYd-R81P=SxMHeQgMABXBiqRdzLRega_O7ii4Y0nA@mail.gmail.com>
In-Reply-To: <20111117183642.GY1455@elvis.mu.org>
References:  <20111117040109.GU1455@elvis.mu.org> <462306074.1954190.1321506994004.JavaMail.root@erie.cs.uoguelph.ca> <20111117183642.GY1455@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 17, 2011 at 1:36 PM, Alfred Perlstein <alfred@freebsd.org> wrote:
> * Rick Macklem <rmacklem@uoguelph.ca> [111116 21:16] wrote:
>> Alfred Perlstein wrote:
>> > Rick, I have a question, what will happen if the nfs_freesillyrename()
>> > call happens when the mount is down? Will it block the
>> > taskqueue_thread?
>> >
>> > If so, it might make more sense to make a taskqueue per mount point.
>> >
>> > If not, excuse me. :-)
>> >
>> Well, all nfs_freesillyrename() does is a vrele() on the parent
>> directory when the file node's use count has gone to 0.
>> I can't think why that would do any RPC, so I don't see a problem?
>> If you do see a problem with vrele() on the directory, please let me
>> know.
>>
>> The problem this fixes is a LOR that would occur when the vrele() on
>> the directory was done by the thread doing VOP_INACTIVE(), since it
>> already has the file vnode lock and the vrele() was locking the parent
>> directory. This could cause a fairly rare deadlock.
>
> Yes, I understand the VFS deadlock.
>
> I see, I didn't realize the call was against the directory,
> thank you for explaining.
>
> -Alfred
Rick
  Any chance this will make it back into 7.3-RELEASE and 7.4-RELEASE ?


-- 
mark saad | nonesuch@longcount.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMXt9Nar8CYd-R81P=SxMHeQgMABXBiqRdzLRega_O7ii4Y0nA>