From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0050.outbound.protection.outlook.com [104.47.2.50]) by dpdk.org (Postfix) with ESMTP id DD2385F30 for ; Mon, 19 Mar 2018 10:13:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=SaE/TP4ezu+uoDAkJo7M8euNLkQPoHNwbVL6PczF/lg=; b=VWKY5ezEEFec5An7G+z0im1BZL3pt4JmnJbaUPGacG0ebmN2UgOuyYpGRSUETxzNPUcnRyxn8igOiIdwz+qgttKu2pEh/zWtaP4b2Q6EC7x/lTT1h39dDuRs6dU7jtJovtpDC12UoPxM+SzQ9MUU1Oh38SBAyon/flFo1CkG5qA= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4267.eurprd05.prod.outlook.com (52.134.108.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 09:13:35 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::3473:b2b5:68f:fe6e]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::3473:b2b5:68f:fe6e%13]) with mapi id 15.20.0588.016; Mon, 19 Mar 2018 09:13:35 +0000 From: Shahaf Shuler To: =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "Xueming(Steven) Li" CC: Adrien Mazarguil , "dev@dpdk.org" Thread-Topic: [PATCH v1] net/mlx5: fix existing file removal Thread-Index: AQHTvTqnPKIFyZ1VOUuCfi/QGc/dGKPS/v4AgARLiGA= Date: Mon, 19 Mar 2018 09:13:35 +0000 Message-ID: References: <20180316102748.10864-1-xuemingl@mellanox.com> <20180316152227.19813-1-xuemingl@mellanox.com> <20180316153744.lua4zr54er5v5p7g@laranjeiro-vm.dev.6wind.com> In-Reply-To: <20180316153744.lua4zr54er5v5p7g@laranjeiro-vm.dev.6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4267; 7:R7WzRJFwWD9S6YFHw0+ATCTVL+HoHcYDp5vFHSCYTZR7RxlTY3UE62L7LxP/LNlwefkbQHNeH06rU0MTmb2VOx0ScuPmbwBlAyWDMfuLoFeoGAO85hvp6qJV4I/GAIdgtQwjM8dnRKc/6kwsq9cy5a/HH1MbPsv1c9GMaBd3ol9lpf+v5nq61RmBln5ByDQakm7ZSOxIbwbTEuKN2v+Lj6Pa6r8t7r6o94lxwDKtPkQklnsuZIFIakpBQaMKI73B x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: faf1c1c1-e525-4b3c-8bda-08d58d79b1a5 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4267; x-ms-traffictypediagnostic: DB7PR05MB4267: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231221)(944501300)(52105095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:DB7PR05MB4267; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4267; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(376002)(396003)(39860400002)(189003)(199004)(7696005)(5660300001)(305945005)(97736004)(68736007)(14454004)(76176011)(478600001)(86362001)(66066001)(7736002)(229853002)(53936002)(5250100002)(99286004)(106356001)(2950100002)(6636002)(3660700001)(186003)(4326008)(25786009)(74316002)(9686003)(6506007)(26005)(55016002)(105586002)(2906002)(33656002)(54906003)(6436002)(110136005)(3846002)(102836004)(6246003)(8936002)(3280700002)(8676002)(81166006)(316002)(2900100001)(81156014)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4267; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: xZerGfOmapHcJ/OAiMtptNczPfS7xaUhPOtnK30uyWkwE7wAB2NLEhZqROCHNL82DJCsyBZxe/zXShnA532U8B2bj4RRigMwlKtOe80A5CwK0mbiwpoUYrH9Kx+q1c8pnKPRnwXqt7F0NDHYDrWx/lpdHTmvCEOH/CLNQZyhpAIjN8bDjzae046oHaVLAjIZbQl/y2r38VrO5e5RZ5xoNM/SXdPm4gafrQpFxSN0Yh8ttlXXAsBSuYx5vdm6VRCWp1ahnGvig229uq5Kya/RLmbI+Vue2S9AZjn7P87LpFKZx1aAMI1kJrwcH4KVxkUKQmmxoXCVxNBl445LtYe9wQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: faf1c1c1-e525-4b3c-8bda-08d58d79b1a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 09:13:35.3300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4267 Subject: Re: [dpdk-dev] [PATCH v1] net/mlx5: fix existing file removal X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 09:13:38 -0000 Friday, March 16, 2018 5:38 PM, N=E9lio Laranjeiro: > On Fri, Mar 16, 2018 at 11:22:27PM +0800, Xueming Li wrote: > > There is no guarantee that the file won't be removed by external > > user/application between the stat() and remove() syscalls, remove() > > will fail if the file no longer exists. > > > > Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file > > descriptor") > > > > Signed-off-by: Xueming Li >=20 > Acked-by: Nelio Laranjeiro Applied to next-net-mlx, thanks.=20