Whamcloud - gitweb
LU-598 open non-exist object should return ENOENT
authornasf <yong.fan@whamcloud.com>
Tue, 16 Aug 2011 13:53:19 +0000 (21:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 Aug 2011 21:59:54 +0000 (17:59 -0400)
commit17c7141d3e423ba903b0fec571b8afb7fca41c79
treec4eb4b9ec4c99831d405f3503fa391de158c4e2b
parent04f2d8ab2524851477f0b6fbffbc115d0c82fdc6
LU-598 open non-exist object should return ENOENT

When call ll_intent_file_open() against non-exist object, we cannot
obtain RPC request refcount after the call, so subsequent operation
should not use such internal (only) RPC request to avoid to access
freed (or re-allocated) memory.

Change-Id: I4c3763f460c6145e376538f392fde338d44e6c5e
Signed-off-by: nasf <yong.fan@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1242
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c