![]() | |||||||||||
Messages in this thread |
On Fri, Aug 20, 2004 at 07:44:47AM +0200, Peter Osterlund wrote: > The release/ioctl functions should be no problems to convert, but how > do I prevent pkt_open() and pkt_remove_dev() from racing against each > other with your suggestion? Currently this is handled by the ctl_mutex > and the fact that pkt_find_dev_from_minor() returns NULL if the packet > device has gone away. If you call del_gendisk early enough the blocklayer will synchrnoize them for you. It looks like you'll have to move del_gendisk a little up for that, though. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||
| Last update: 2005-03-22 14:05 [from the cache] ©2003-2008 | |||||||||||