Whamcloud - gitweb
LU-8411 ofd: handle last_rcvd file can't update properly 98/21398/13
authorAlexey Lyashkov <alexey.lyashkov@seagate.com>
Mon, 18 Jul 2016 14:28:18 +0000 (17:28 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 Jan 2017 04:06:55 +0000 (04:06 +0000)
commit6a81ffa1e9e44231d812e331c73cfa9df67746ed
tree7f3d418e26bff502d36538d88d0d8797be204363
parentbfa1dbc969df6e9e10579fdb30ab653835463bd2
LU-8411 ofd: handle last_rcvd file can't update properly

last_rcvd update may fail but "no fail" return code will
be sent to client. DIO request may be replayed in that case instead
of resend, but as no fail return code send to client, user
application will free a buffer, so replay will be sent with incorrect
data.

Write should fail if last_rcvd can't update properly.

This patch causes sanity test 407 to fail or has brought out an
existing bug in Lustre. sanity test 407 is added to the
ALWAYS_EXCPET list.

Seagate-bug-id: MRP-3609
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@seagate.com>
Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: Idcbff5fd990edbc84539197da9876748b33795dd
Reviewed-on: https://review.whamcloud.com/21398
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/ofd/ofd_trans.c
lustre/osd-ldiskfs/osd_handler.c
lustre/target/tgt_lastrcvd.c
lustre/tests/sanity.sh