Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b24ae0b5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Al Viro
Browse files

ocfs2/dlm: use GFP_ATOMIC inside a spin_lock



My static checker complains that this is called with a spin_lock held
in dlm_master_requery_handler() from dlmrecovery.c.  Probably the reason
we have not received any bug reports about this is that recovery is not
a common operation.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJoel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9b171e0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2020,7 +2020,7 @@ int dlm_dispatch_assert_master(struct dlm_ctxt *dlm,
			       int ignore_higher, u8 request_from, u32 flags)
{
	struct dlm_work_item *item;
	item = kzalloc(sizeof(*item), GFP_NOFS);
	item = kzalloc(sizeof(*item), GFP_ATOMIC);
	if (!item)
		return -ENOMEM;