* [PATCH] locks: fix generic_delete_lease tracepoint to use victim pointer
@ 2015-03-07 12:51 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2015-03-07 12:51 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, bfields
It's possible that "fl" won't point at a valid lock at this point, so
have it instead point at "victim" which is either a valid lock or NULL.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
---
fs/locks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/locks.c b/fs/locks.c
index 8f61ad524e3e..0915a3ead897 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1732,7 +1732,7 @@ static int generic_delete_lease(struct file *filp, void *owner)
break;
}
}
- trace_generic_delete_lease(inode, fl);
+ trace_generic_delete_lease(inode, victim);
if (victim)
error = fl->fl_lmops->lm_change(victim, F_UNLCK, &dispose);
spin_unlock(&ctx->flc_lock);
--
2.1.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-07 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-07 12:51 [PATCH] locks: fix generic_delete_lease tracepoint to use victim pointer Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome