Re: RFC: Fix f_flags races without the BKL

From: Andi Kleen
Date: Fri Jan 09 2009 - 09:55:20 EST


> > Now we have the global mutex for ->fasync... Well, not very
> > good but fasync_helper() takes fasync_lock anyway.
>
> Not very good, but does anybody know of a workload which would result in
> that mutex being contended ever?

I presume it could be a problem on a program that uses asynchronous sockets
multi threaded. At some point that used to be a common pattern for
network servers like squid (not saying that it's necessarily contended
in squid itself)

-andi

--
ak@xxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/