Whamcloud - gitweb
b=21490 1.8<->2.0 interop: in 2.0 server and 1.8 client env. read 1. 8 file hung
authorNicolas Williams <Nicolas.Williams@Sun.COM>
Mon, 25 Jan 2010 22:09:10 +0000 (16:09 -0600)
committerRobert Read <rread@sun.com>
Tue, 26 Jan 2010 00:35:14 +0000 (16:35 -0800)
commit5e833ccec1d779275656cfcae821e06c90a8604b
treeb21f0e4a9f5b26138a56d72ec85c34a6bb0d80fb
parent271823e89e7c00a390ee27ad7d4b8fc6ac9cfda1
b=21490 1.8<->2.0 interop: in 2.0 server and 1.8 client env. read 1. 8 file hung

The fix for bug 18631 introduced an interop bug for 1.8.x clients with 2.0 OSTs.
The problem was that a zero-length RMF_RCS was included in the OST_BRW replies
for READs, which caused the RPC header to have eight more bytes for storing the
length of that zero-length buffer.  The fix is to split RQF_OST_BRW into two,
one for READs and one for WRITEs, with RMF_RCS present only in the reply for
OST_BRW_WRITE.

i=robert.read@sun.com
i=tom.wang@sun.com
lustre/include/lustre_req_layout.h
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/layout.c