summaryrefslogtreecommitdiff
path: root/drivers/regulator/lp3972.c
diff options
context:
space:
mode:
authorJunxiao Bi <junxiao.bi@oracle.com>2015-05-06 02:24:02 +0300
committerBen Hutchings <ben@decadent.org.uk>2015-08-07 02:32:09 +0300
commitbbdef5d38abb4917f4f25bc3f94ccf4ff46ffec5 (patch)
tree812763d743961eae30f491a05e09aadc2ced8d08 /drivers/regulator/lp3972.c
parent74e08b1cc7be2c4eecdd277484ed89fcacb0d3dd (diff)
downloadlinux-bbdef5d38abb4917f4f25bc3f94ccf4ff46ffec5.tar.xz
ocfs2: dlm: fix race between purge and get lock resource
commit b1432a2a35565f538586774a03bf277c27fc267d upstream. There is a race window in dlm_get_lock_resource(), which may return a lock resource which has been purged. This will cause the process to hang forever in dlmlock() as the ast msg can't be handled due to its lock resource not existing. dlm_get_lock_resource { ... spin_lock(&dlm->spinlock); tmpres = __dlm_lookup_lockres_full(dlm, lockid, namelen, hash); if (tmpres) { spin_unlock(&dlm->spinlock); >>>>>>>> race window, dlm_run_purge_list() may run and purge the lock resource spin_lock(&tmpres->spinlock); ... spin_unlock(&tmpres->spinlock); } } Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com> Cc: Joseph Qi <joseph.qi@huawei.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/regulator/lp3972.c')
0 files changed, 0 insertions, 0 deletions