On Sun, Apr 24 2005, [EMAIL PROTECTED] wrote: > @@ -1099,6 +1104,7 @@ static int prepare_request(struct reques > if((rq_data_dir(req) == WRITE) && !dev->openflags.w){ > printk("Write attempted on readonly ubd device %s\n", > disk->disk_name); > + WARN_ON(1); /* This should be impossible now */ > end_request(req, 0); > return(1); > }
I don't think that's a sound change. The WARN_ON() is strictly only really useful for when you need the stack trace for something interesting. As the io happens async, you will get a boring trace that doesn't contain any valuable information. -- Jens Axboe ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel