Ilija Hadzic 66da0e1f90 devpts: plug the memory leak in kill_sb
When devpts is unmounted, there may be a no-longer-used IDR tree hanging
off the superblock we are about to kill.  This needs to be cleaned up
before destroying the SB.

The leak is usually not a big deal because unmounting devpts is typically
done when shutting down the whole machine.  However, shutting down an LXC
container instead of a physical machine exposes the problem (the garbage
is detectable with kmemleak).

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-13 12:09:36 +09:00
..
2013-06-29 12:56:55 +04:00
2013-07-05 18:59:33 +04:00
2013-11-13 12:09:12 +09:00
2013-08-12 15:22:43 -05:00
2013-10-15 12:14:06 -04:00
2013-06-29 12:56:53 +04:00
2013-10-01 16:41:23 +02:00
2013-09-07 10:38:29 +02:00
2013-06-29 12:56:47 +04:00
2013-09-16 18:20:25 -07:00
2013-06-29 12:56:32 +04:00
2013-11-13 12:09:33 +09:00
2013-06-29 12:56:38 +04:00
2013-06-29 12:56:39 +04:00
2013-06-29 12:56:29 +04:00
2013-09-24 11:23:33 +02:00
2013-06-29 12:57:04 +04:00
2013-07-10 18:11:34 -07:00
2013-04-29 15:40:23 -04:00
2013-09-24 14:41:42 -07:00
2013-09-13 23:06:40 -04:00
2013-06-29 12:57:05 +04:00
2013-09-10 18:56:31 -04:00
2013-04-17 13:25:09 +01:00
2013-10-22 12:02:40 +01:00
2013-05-07 20:16:25 -07:00
2013-05-31 15:16:33 -04:00
2013-07-30 11:53:12 -04:00
2013-06-29 12:57:05 +04:00
2013-10-01 13:11:21 -04:00
2013-05-29 12:57:34 -07:00