From 1c95f6f795c2a9c1c36ffff7911e23835bc45a21 Mon Sep 17 00:00:00 2001 From: zab Date: Wed, 22 Oct 2003 22:04:01 +0000 Subject: [PATCH] b=2010 The OSC was accidentally stuffing too much bulk data in RPCs when running with 8k pages. This trivially re-uses the math the OSC was already doing to fix the new RPC building mechanism. --- lustre/osc/osc_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/osc/osc_internal.h b/lustre/osc/osc_internal.h index ccc4b34..7a011d3 100644 --- a/lustre/osc/osc_internal.h +++ b/lustre/osc/osc_internal.h @@ -10,6 +10,10 @@ #ifndef OSC_INTERNAL_H #define OSC_INTERNAL_H +/* bug 1578: negotiate BRW_MAX_SIZE with the OST, instead of hard-coding it */ +#define OSC_BRW_MAX_SIZE PTL_MTU +#define OSC_BRW_MAX_IOV min_t(int, PTL_MD_MAX_IOV, OSC_BRW_MAX_SIZE/PAGE_SIZE) + #define OAP_MAGIC 8675309 struct osc_async_page { -- 1.8.3.1