On 10/20/21 07:29, Christoph Hellwig wrote:
On Tue, Oct 19, 2021 at 10:24:17PM +0100, Pavel Begunkov wrote:
First, don't init a callback list if there are no plug callbacks. Also,
replace internals of the function with do-while.
So the check to not call into the callback code when there are none,
which is the usual case, totally makes sense. But what is the point of
the rest?
I don't care much about that part, can leave it alone, especially if
blk_flush_plug_list() stays in blk-core.c. I'll likely squash this
patch into the previous one.
--
Pavel Begunkov