@@ -1592,6 +1592,7 @@ static void time_out_leases(struct inode *inode, struct list_head *dispose)
if (fl->fl_flags & FL_LONGTERM) {
tsk = find_task_by_vpid(fl->fl_pid);
fl->fl_break_time = 1 + jiffies + lease_break_time * HZ;
+ trace_longterm_sigbus(fl);
lease_modify_longterm(fl, F_UNLCK, dispose);
kill_pid(tsk->thread_pid, SIGBUS, 0);
} else {
@@ -271,7 +271,9 @@ DEFINE_EVENT(longterm_lease, take_longterm_lease,
DEFINE_EVENT(longterm_lease, release_longterm_lease,
TP_PROTO(struct file_lock *fl),
TP_ARGS(fl));
-
+DEFINE_EVENT(longterm_lease, longterm_sigbus,
+ TP_PROTO(struct file_lock *fl),
+ TP_ARGS(fl));
#endif /* _TRACE_FILELOCK_H */
From: Ira Weiny <ira.weiny@intel.com> --- fs/locks.c | 1 + include/trace/events/filelock.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-)