]> git.baikalelectronics.ru Git - kernel.git/commit
fs: Fix hang with BSD accounting on frozen filesystem
authorJan Kara <jack@suse.cz>
Fri, 3 May 2013 22:11:23 +0000 (00:11 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 May 2013 18:57:58 +0000 (14:57 -0400)
commit4880e57cb1e3092ae57bd4cbe307144e155d4dc2
treeea0ea08edbc6f4f0644faca5e8c3a29a68f71c51
parent933f15f98a3c416965ea7a7523524d6508291c8c
fs: Fix hang with BSD accounting on frozen filesystem

When BSD process accounting is enabled and logs information to a
filesystem which gets frozen, system easily becomes unusable because
each attempt to account process information blocks. Thus e.g. every task
gets blocked in exit.

It seems better to drop accounting information (which can already happen
when filesystem is running out of space) instead of locking system up.
So we just skip the write if the filesystem is frozen.

Reported-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs.h
kernel/acct.c