[PATCH] don't do exit_io_context() until we know we won't be doing any IO
commitafc847b7ddcf636e524cf5b0de644bd3a9419a8c
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Feb 2006 17:51:55 +0000 (28 12:51 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Mar 2006 23:33:46 +0000 (18 18:33 -0500)
tree5022a566bc55a12a792c8bd9b2d94ccfd4b10235
parent60a6dc55b93b3321afa52f650a149fb7e87fa85a
[PATCH] don't do exit_io_context() until we know we won't be doing any IO

testcase:

mount /dev/sdb10 /mnt
touch /mnt/tmp/b
umount /mnt
mount /dev/sdb10 /mnt
rm /mnt/tmp/b </mnt/tmp/b
umount /mnt

and watch blkdev_ioc line in /proc/slabinfo.  Vanilla kernel leaks.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/exit.c