mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
mempool: legitimize the io_schedule_timeout in mempool_alloc_from_pool
The timeout here is and old workaround with a Fixme comment. But thinking about it, it makes sense to keep it, so reword the comment. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20251113084022.1255121-9-hch@lst.de Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
committed by
Vlastimil Babka
parent
ac529d86ad
commit
9c4391767f
@@ -427,10 +427,10 @@ fail:
|
|||||||
spin_unlock_irqrestore(&pool->lock, flags);
|
spin_unlock_irqrestore(&pool->lock, flags);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wait for someone else to return an element to @pool.
|
* Wait for someone else to return an element to @pool, but wake
|
||||||
*
|
* up occasionally as memory pressure might have reduced even
|
||||||
* FIXME: this should be io_schedule(). The timeout is there as
|
* and the normal allocation in alloc_fn could succeed even if
|
||||||
* a workaround for some DM problems in 2.6.18.
|
* no element was returned.
|
||||||
*/
|
*/
|
||||||
io_schedule_timeout(5 * HZ);
|
io_schedule_timeout(5 * HZ);
|
||||||
finish_wait(&pool->wait, &wait);
|
finish_wait(&pool->wait, &wait);
|
||||||
|
|||||||
Reference in New Issue
Block a user