Hi Andries, Hi List! Andries, thank you for your quick response, >Well, among the irrelevant details you left out is the fact that >it is not > blk_size[dev->major] = NULL; >but > if(!dev->sizes) > blk_size[dev->major] = NULL; Well, this is absoloutely right, the behaviour to clear blk_size when dev->sizes is NULL looks sensible to me. But seven lines below it says -unconditionaly-: blk_size[dev->major] = NULL; >So, the idea is that either this major has an array with sizes, >and then one can find it in blk_size[dev->major], or it hasn't. >You seem to have a situation where dev->sizes is NULL but >blk_size[dev->major] is not? What device is this? Our dev->sizes holds a pointer which (normally, when grok_partitions is not running currently). We are running the dasd-device driver for channel attached disks on mainframe architectures (drivers/s390/block/dasd*). mit freundlichem Gruß / with kind regards Carsten Otte IBM Deutschland Entwicklung GmbH Linux for 390/zSeries Development - Device Driver Team Phone: +49/07031/16-4076 IBM internal phone: *120-4076 -- We are Linux. Resistance indicates that you're missing the point! Andries.Brouwer@cwi.nl on 06/07/2001 11:10:52 PM Please respond to Andries.Brouwer@cwi.nl To: Carsten Otte/Germany/IBM@IBMDE, linux-kernel@vger.kernel.org cc: Subject: Re: BUG: race-cond with partition-check and ll_rw_blk (all platforms, 2.4.*!)