https://github.com/torvalds/linux
Revision 22747d6b41f31c71abc2b351bc9f6bfa6bae5d5e authored by Francois Romieu on 15 February 2007, 22:37:50 UTC, committed by Jeff Garzik on 20 February 2007, 16:18:13 UTC
Mantra: don't use flush_scheduled_work with RTNL held.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent 83cbb4d
Raw File
Tip revision: 22747d6b41f31c71abc2b351bc9f6bfa6bae5d5e authored by Francois Romieu on 15 February 2007, 22:37:50 UTC
s2io: RTNL and flush_scheduled_work deadlock
Tip revision: 22747d6
nonet.c
/*
 * net/nonet.c
 *
 * Dummy functions to allow us to configure network support entirely
 * out of the kernel.
 *
 * Distributed under the terms of the GNU GPL version 2.
 * Copyright (c) Matthew Wilcox 2003
 */

#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>

static int sock_no_open(struct inode *irrelevant, struct file *dontcare)
{
	return -ENXIO;
}

const struct file_operations bad_sock_fops = {
	.owner = THIS_MODULE,
	.open = sock_no_open,
};
back to top