Re: [PATCH 08/19] ceph: address space operations

From: Andi Kleen
Date: Thu Jul 23 2009 - 15:16:22 EST


> There are two other memory allocations during writeout: a vector of pages
> to be written, and the message we're sending to the OSD. If I use a
> mempool for those to guarantee as least some writeout will occur, how do I
> safely defer when allocations do fail? Will pdflush (or it's replacement)
> eventually come back and try ->writepages() again?

mempool allocs should never fail, just block for a long time until
someone else frees. This means you need to ensure of course you
always make forward progress.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/