We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2c254 commit 0045fb1Copy full SHA for 0045fb1
fs/notify/fanotify/fanotify.c
@@ -228,8 +228,10 @@ static int fanotify_get_response(struct fsnotify_group *group,
228
229
pr_debug("%s: group=%p event=%p\n", __func__, group, event);
230
231
- ret = wait_event_killable(group->fanotify_data.access_waitq,
232
- event->state == FAN_EVENT_ANSWERED);
+ ret = wait_event_state(group->fanotify_data.access_waitq,
+ event->state == FAN_EVENT_ANSWERED,
233
+ (TASK_KILLABLE|TASK_FREEZABLE));
234
+
235
/* Signal pending? */
236
if (ret < 0) {
237
spin_lock(&group->notification_lock);
0 commit comments