]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: Move autoclose of BSD accounting into a work queue
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 12 Apr 2014 19:49:10 +0000 (12:49 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Apr 2014 00:13:26 +0000 (17:13 -0700)
commitc31b26c462d6028efc8d079de942ee89cd5f3a48
treeafd1a0c018a5e68330a665d3edef822176a39bd3
parent4fb7fb94c3b91a4469f5675de3f4efb5b9532ebc
vfs: Move autoclose of BSD accounting into a work queue

The autoclose of BSD accounting writes a record to the BSD accounting
file.  When mntput is called from moderaly deep within the stack the
(3KiB or so) generating I/O can be problemenatic as some I/O paths
require nearly 5KiB of stack on their own.

Avoid the possibility of stack overflow by moving the close of the BSD
accounting file into a work queue.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/acct.c