On Fri, Sep 12, 2014 at 4:11 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > On Thu, Sep 11, 2014 at 11:02:32PM +0800, Peng Tao wrote: >> Both blocks layout and objects layout want to use it to avoid CB_LAYOUTRECALL >> but that should only happen if client is doing chown or truncate. So change >> PNFS_LAYOUTRET_ON_SETATTR to follow the logic and not to send layoutreturn >> unnecessarily. > > We should defintively reduce the amount of returns, but why do we even > bother and chown and a truncate to a larger size? hmm, I agree. Let's only layoutreturn on truncate to a smaller size and let server decide if it needs CB_LAYOUTRECALL in chown. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html