KaiGai Kohei c6e8c6ccf9 [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>
2006-06-29 15:33:02 +01:00
..
2006-06-26 18:35:02 +02:00
2006-06-25 10:01:22 -07:00
2006-06-26 09:58:18 -07:00
2006-06-26 09:58:18 -07:00
2006-06-26 09:58:18 -07:00
2006-06-26 09:58:20 -07:00
2006-06-26 18:35:02 +02:00
2006-06-09 09:40:27 -04:00
2006-06-27 14:07:19 -07:00
2006-06-27 17:32:39 -07:00
2006-03-24 07:33:19 -08:00
2006-06-26 09:58:18 -07:00
2006-06-26 09:58:17 -07:00
2006-06-27 17:32:39 -07:00
2006-06-26 18:35:02 +02:00
2006-06-27 17:32:38 -07:00
2006-06-26 09:58:17 -07:00
2006-06-23 17:10:39 +02:00
2006-04-02 13:37:19 +02:00
2006-04-11 13:53:33 +02:00
2006-06-23 17:10:39 +02:00
2006-04-02 13:38:18 +02:00
2006-06-23 07:42:53 -07:00
2006-06-27 19:13:56 -07:00
2006-06-26 09:58:17 -07:00
2006-03-28 09:16:08 -08:00
2006-06-23 07:42:49 -07:00
2006-06-26 09:58:17 -07:00
2006-03-24 07:33:19 -08:00
2006-06-26 09:58:17 -07:00
2006-03-23 07:38:11 -08:00
2006-03-23 07:38:11 -08:00
2006-03-23 07:38:12 -08:00
2006-04-28 21:04:59 +10:00
2006-06-23 07:42:49 -07:00