On Thu, Jan 02, 2003 at 08:52:18AM +0000, Neil Bird wrote: > I had a look at this over XMas; apart from not yet being able to > rpmbuild the kernel from the src-rpm (can 'make' from 'sources' rpm - > need to investigate), I found the following: sd.c (no where near where > you pointed - what kernel vn. were you ref.ing?) says: > > > /* This routine is called to flush all partitions and partition tables > * for a changed scsi disk, and then re-read the new partition table. > * If we are revalidating a disk because of a media change, then we > * enter with usage == 0. If we are using an ioctl, we automatically have > * usage == 1 (we need an open channel to use an ioctl :-), so this > * is our limit. > */ > int revalidate_scsidisk(kdev_t dev, int maxusage) > > > So we /want/ '0' in this case, don't we? Is passing '1' correct here?
In this case, the routine is being called in response to an open(), either from userspace or the kernel. In that case, there will be something using it, so the maxusage parameter has to be 1, otherwise it will fail (since the use count will already be 1, by virtue of it being open). -- Derrik Pates [EMAIL PROTECTED] [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
