]> err.no Git - linux-2.6/commit
ocfs2: Concurrent access of o2hb_region->hr_task was not locked
authorJoel Becker <joel.becker@oracle.com>
Sat, 3 Feb 2007 11:04:20 +0000 (03:04 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 14 Mar 2007 21:37:12 +0000 (14:37 -0700)
commite6c352dbc0f4dc7e3f82feafb9e6207c5814a189
tree796049268fa7a90ee87f2f01a109354f7a54ce01
parentc24f72cc7ca829bbad0532ddf315ace3ae1c359e
ocfs2: Concurrent access of o2hb_region->hr_task was not locked

This means that a build-up and a teardown could race which would result in a
double-kthread_stop().

Protect the setting and clearing of hr_task with o2hb_live_lock, as it's not
a common thing and not performance critical.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/cluster/heartbeat.c