Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711AbbKZAjr (ORCPT ); Wed, 25 Nov 2015 19:39:47 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:46562 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbbKZAjn (ORCPT ); Wed, 25 Nov 2015 19:39:43 -0500 Message-ID: <1448498376.27159.42.camel@decadent.org.uk> Subject: Re: [PATCH 3.2 38/52] Btrfs: fix race when listing an inode's xattrs From: Ben Hutchings To: Luis Henriques Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, akpm@linux-foundation.org, Filipe Manana Date: Thu, 26 Nov 2015 00:39:36 +0000 In-Reply-To: <20151125231100.GC21715@charon> References: <20151125231100.GC21715@charon> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-G1DA1Qx/l3vo1dtFfhKQ" X-Mailer: Evolution 3.18.1-1 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.4.247 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6676 Lines: 105 --=-G1DA1Qx/l3vo1dtFfhKQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 T24gV2VkLCAyMDE1LTExLTI1IGF0IDIzOjExICswMDAwLCBMdWlzIEhlbnJpcXVlcyB3cm90ZToK PiBPbiBUdWUsIE5vdiAyNCwgMjAxNSBhdCAxMDozMzo1OVBNICswMDAwLCBCZW4gSHV0Y2hpbmdz IHdyb3RlOgo+ID4gMy4yLjc0LXJjMSByZXZpZXcgcGF0Y2guwqDCoElmIGFueW9uZSBoYXMgYW55 IG9iamVjdGlvbnMsIHBsZWFzZSBsZXQgbWUga25vdy4KPiA+IAo+ID4gLS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RSX0lURU1fS0VZIGFuZCBza2lwIHRoZSBjdXJyZW50IGtleSBpZiBp dHMgdHlwZSBpcyBzbWFsbGVyLgo+ID4gCj4gPiBTaWduZWQtb2ZmLWJ5OiBGaWxpcGUgTWFuYW5h IDxmZG1hbmFuYUBzdXNlLmNvbT4KPiA+IFtid2g6IEJhY2twb3J0ZWQgdG8gMy4yOiBzL2ZvdW5k X2tleVwudHlwZS9idHJmc19rZXlfdHlwZShcJmZvdW5kX2tleSkvXQo+IAo+IEFjdHVhbGx5LCBp biBteSBiYWNrcG9ydCB0byAzLjE2IEkgZGVjaWRlZCB0byBrZWVwIHRoZSB1c2FnZSBvZgo+ICdm b3VuZF9rZXkudHlwZScgaW5zdGVhZCwgYXMgdGhlIHVzYWdlIG9mIGJ0cmZzX2tleV90eXBlKCkg aGFzIGJlZW4KPiBkcm9wcGVkIHdpdGggY29tbWl0IDk2MmEyOThmMzUxMSAoImJ0cmZzOiBraWxs IHRoZSBrZXkgdHlwZSBhY2Nlc3Nvcgo+IGhlbHBlcnMiKS4KWy4uLl0KCk9LLCB0aGF0IG1ha2Vz IHNlbnNlLiDCoGJ0cmZzIGluIDMuMiBpcyBwcmV0dHkgaW5jb25zaXN0ZW50IGFib3V0IHVzaW5n CmJ0cmZzX2tleV90eXBlKCkgYW55d2F5LgoKQmVuLgoKCi0tIApCZW4gSHV0Y2hpbmdzClVuaXgg aXMgbWFueSB0aGluZ3MgdG8gbWFueSBwZW9wbGUsCmJ1dCBpdCdzIG5ldmVyIGJlZW4gZXZlcnl0 aGluZyB0byBhbnlib2R5Lg== --=-G1DA1Qx/l3vo1dtFfhKQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUAVlZUyOe/yOyVhhEJAQo/RA/+Oe5XmUeskeSWltcSIpgNz2LuwdJHc0AA BEpgkwOrGaSZ5vsNd3CWEpGA/VfCKOaFgsyg7vjMh5tNoOMtagGPdZbG0OJzvy2F 4u3ybpqWlArqug67zgoiiCz/cqr0YLUO3dTvyunmWLuZr8tNtgFOWO/tHkYYpkgn vaT8aS8z9KNtUM97m+W/wMUBl62+komYT83u99hQLXXwr6bu6bJidJMpBOxVdveC DOF20uxLv9E54/pNYHOoRZiGnlHVWHB6NkmRHxHdRC9vYc92Y3PuKXxNcWJi7uvq tTDsDLjbfxS5dZEZzsGuoIkfgZiAQkZHyhlFmUHguAunNob7Kd8m6+ceC8VWXOff CTw9LSbeOWewGRleQnS9NZAu8v4ttzr4mF8LuZaQoqkDyl19JvO0mS/6FxtQnv0H TuHxD+ZZLPndxDCfT3hERUzJUGcEAeRWziyI6cYVqS8EijHYKvqYSC7bi40iOIVf uW/NtIYtnbh1ug6PVq0RVqoxxPf5ZI3ddPjJcR2/en1rSyLI78S5p8o0hgC2H8es YJk5gPJKpY/QuibUxVZlwiz6tBKtpDIikpFCuZf3CMY13cyLic57vIEEX4UZda5+ e9EN5bNiaghtim5Yux6y5VvO87Z02lmqEyHGvYPoQ6IsSD+qNGHe4akIs1Pv79Ih QerJIP4roDc= =DSsq -----END PGP SIGNATURE----- --=-G1DA1Qx/l3vo1dtFfhKQ-- -- 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/