aio: fix kioctx leak introduced by "aio: Fix a trinity splat"
authorBenjamin LaHaise <bcrl@kvack.org>
Sat, 21 Dec 2013 20:49:28 +0000 (15:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:08 +0000 (12:25 -0800)
commit200067a3f3e73eecb457c5bf25fec875cf42d53d
tree12b9fe89d34c42beb0f722670e29cc31e97a82ed
parent3a3f7cfe5c16170aeb0dd2654f464cfbd2332b1d
aio: fix kioctx leak introduced by "aio: Fix a trinity splat"

commit 1881686f842065d2f92ec9c6424830ffc17d23b0 upstream.

e34ecee2ae791df674dfb466ce40692ca6218e43 reworked the percpu reference
counting to correct a bug trinity found.  Unfortunately, the change lead
to kioctxes being leaked because there was no final reference count to
put.  Add that reference count back in to fix things.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/aio.c