aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
authorKaiGai Kohei <kaigai@ak.jp.nec.com>2006-06-29 15:33:02 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-06-29 15:33:02 +0100
commitc6e8c6ccf96e9249805d0e9828b994f4c926ad51 (patch)
tree0db9c602c20a94d9afbd555a131805de60e75ed2 /fs/splice.c
parentea9b6dcc152f09c207117ab121d4fa03d2db282a (diff)
downloadkernel_samsung_smdk4412-c6e8c6ccf96e9249805d0e9828b994f4c926ad51.zip
kernel_samsung_smdk4412-c6e8c6ccf96e9249805d0e9828b994f4c926ad51.tar.gz
kernel_samsung_smdk4412-c6e8c6ccf96e9249805d0e9828b994f4c926ad51.tar.bz2
[JFFS2][XATTR] Fix xd->refcnt race condition
When xd->refcnt is checked whether this xdatum should be released or not, atomic_dec_and_lock() is used to ensure holding the c->erase_completion_lock. This fix change a specification of delete_xattr_datum(). Previously, it's only called when xd->refcnt equals zero. (calling it with positive xd->refcnt cause a BUG()) If you applied this patch, the function checks whether xd->refcnt is zero or not under the spinlock if necessary. Then, it marks xd DEAD flahs and links with xattr_dead_list or releases it immediately when xd->refcnt become zero. Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions