Does the block layer prevent races between open() and unregister()?

From: Alan Stern (stern_at_rowland.harvard.edu)
Date: 02/28/04

  • Next message: Martin J. Bligh: "Re: 2.6.3-mm3 (ioremap failure w/ _X86_4G and _NUMA)"
    Date:	Fri, 27 Feb 2004 23:05:57 -0500 (EST)
    To: Jens Axboe <axboe@suse.de>
    
    

    A classic race that all drivers for hot-unpluggable devices have to deal
    with is the race between open() and unregister() (or disconnect()).

    Does the block layer have any mechanism to prevent such races? Or does it
    rely on the lower-level drivers handling such things by themselves?

    Alan Stern

    -
    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/


  • Next message: Martin J. Bligh: "Re: 2.6.3-mm3 (ioremap failure w/ _X86_4G and _NUMA)"

    Relevant Pages