[lkml]   [2004]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:05    [W:0.081 / U:3.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site