On Mon, Mar 28, 2016 at 05:08:45AM +0100, Al Viro wrote: > On Mon, Mar 28, 2016 at 04:58:33PM +1300, Michael Kerrisk (man-pages) wrote: > > > blocking memory allocation: > > > f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); > > > > For how long might this block, though? > > Not much, usually. Finding the file, though, can bloody well take a _long_ > time - put it behind an automount from a slow server and we might be easily > talking about minutes, if not longer. Another example that bit me in the past is scsi devices checking for media presence. If any part of your storage stack drops the cdb, you have to wait for a scsi timeout, usually 30s. Disk events commonly cause delays around the half-second mark. I haven't gone through the code yet to see what the actual limits are. Half a second might already be too long for some realtime applications. Jörn -- When I am working on a problem I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong. -- R. Buckminster Fuller -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html