All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: "Kornievskaia, Olga" <Olga.Kornievskaia@netapp.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH v3 1/3] gssd: use pthreads to handle upcalls
Date: Wed, 27 Apr 2016 13:50:31 -0400	[thread overview]
Message-ID: <5720FBE7.2000300@RedHat.com> (raw)
In-Reply-To: <FDB72BF5-75F1-4A03-84B5-F4E1A06263C8@netapp.com>



On 04/27/2016 12:33 PM, Kornievskaia, Olga wrote:
>>>> I think the biggest saving would be to take the next step 
>>>> and do the pool of threads that are pre-created (and thus 
>>>> not taking time to be allocated for each upcall). Then we 
>>>> need a way to make sure we cleanup any threads that might 
>>>> be hanging for whatever reason.
>>> This will be an excellent next step! 
>>
>> This patch series is suppose to show ‘proof-of-concept’ and 
>> functionally equivalent but better to what we have now. 
>> Old: upcall -> new process. New: upcall -> new thread. 
>> Old: process hangs -> resources not cleaned and no new upcalls. 
>> New: thread hangs -> resources not cleaned and new upcalls can proceed.
Well I think you proved it... Nice work!

>>
>> I will submit the new version with:
>> — make function inline
>> — change setresuid/setresgid to set all three uids: real, effective, saved. git blame tells me Jeff you wrote the comment about attacks from ptrace().
> 
> Sorry I unintentionally hit send. I wanted to say that then I’ll work on 
> getting the pool of thread but working on top of these patches. 
> Or do you want me to keep working and then submit that version 
> as if this one wasn’t written? 
Let's get these in now so they will get some real world 
testing... So lets build on these... 

steved.

  parent reply	other threads:[~2016-04-27 17:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 16:58 [RFC PATCH v3 0/3] adding pthread support to gssd Olga Kornievskaia
2016-04-25 16:58 ` [PATCH v3 1/3] gssd: use pthreads to handle upcalls Olga Kornievskaia
2016-04-27 14:54   ` Steve Dickson
2016-04-27 15:16     ` Kornievskaia, Olga
2016-04-27 15:23       ` Steve Dickson
     [not found]         ` <57DB10EC-2538-4191-B5D7-03D53FD1F9C9@netapp.com>
     [not found]           ` <FDB72BF5-75F1-4A03-84B5-F4E1A06263C8@netapp.com>
2016-04-27 17:50             ` Steve Dickson [this message]
2016-04-25 16:58 ` [PATCH v3 2/3] gssd: using syscalls directly to change thread's identity Olga Kornievskaia
2016-04-25 20:23   ` Jeff Layton
2016-04-25 21:34     ` Kornievskaia, Olga
2016-04-25 16:58 ` [PATCH v3 3/3] gssd: always call gss_krb5_ccache_name Olga Kornievskaia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5720FBE7.2000300@RedHat.com \
    --to=steved@redhat.com \
    --cc=Olga.Kornievskaia@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.