patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Kevin Traynor <ktraynor@redhat.com>
To: Anatoly Burakov <anatoly.burakov@intel.com>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH 18.11] eal: fix cleanup in no-shconf mode
Date: Tue, 30 Apr 2019 17:53:23 +0100	[thread overview]
Message-ID: <5d70936a-7be7-039e-7d73-2d417be67d17@redhat.com> (raw)
In-Reply-To: <9119aac2903c82257a136b2cea3185a00232a203.1556119511.git.anatoly.burakov@intel.com>

On 24/04/2019 16:26, Anatoly Burakov wrote:
> In no-shconf mode, there is no need to clean runtime directory
> because it's not created in the first place.
> 
> Fixes: 0a529578f162 ("eal: clean up unused files on initialization")
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
>  lib/librte_eal/linuxapp/eal/eal.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c
> index 30138b638..59497d04a 100644
> --- a/lib/librte_eal/linuxapp/eal/eal.c
> +++ b/lib/librte_eal/linuxapp/eal/eal.c
> @@ -1214,8 +1214,11 @@ rte_eal_init(int argc, char **argv)
>  	 * whether we are primary or secondary process, but we cannot remove
>  	 * primary process' files because secondary should be able to run even
>  	 * if primary process is dead.
> +	 *
> +	 * In no_shconf mode, no runtime directory is created in the first
> +	 * place, so no cleanup needed.
>  	 */
> -	if (eal_clean_runtime_dir() < 0) {
> +	if (!internal_config.no_shconf && eal_clean_runtime_dir() < 0) {
>  		rte_eal_init_alert("Cannot clear runtime directory\n");
>  		return -1;
>  	}
> 

Thanks Anatoly. Added reference to master commit in msg and pushed into
the queue.

       reply	other threads:[~2019-04-30 16:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9119aac2903c82257a136b2cea3185a00232a203.1556119511.git.anatoly.burakov@intel.com>
2019-04-30 16:53 ` Kevin Traynor [this message]
2019-05-09 17:50 ` Ferruh Yigit
2019-05-09 17:50   ` Ferruh Yigit
2019-05-09 18:16     ` Kevin Traynor
2019-05-10 10:53       ` Burakov, Anatoly

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=5d70936a-7be7-039e-7d73-2d417be67d17@redhat.com \
    --to=ktraynor@redhat.com \
    --cc=anatoly.burakov@intel.com \
    --cc=stable@dpdk.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).