Whamcloud - gitweb
LU-114 use ll_lookup_one_len() instead of lookup_one_len() in sptlrpc_target_local_co...
authorJohann Lombardi <johann@whamcloud.com>
Mon, 7 Mar 2011 16:55:23 +0000 (17:55 +0100)
committerOleg Drokin <green@whamcloud.com>
Thu, 17 Mar 2011 21:32:30 +0000 (14:32 -0700)
commitd0912bb3a0bf5a14002fb96047c3ea4ce1bfbc0e
tree75d7ff5be80829b19b1474e74686bb0b6a39d110
parent1cbf25caab01ac561bb35053ca34fb6eb7336b3d
LU-114 use ll_lookup_one_len() instead of lookup_one_len() in sptlrpc_target_local_copy_conf() should lock the parent dir when doing lookup

Recent kernels print a warning when lookup_one_len() is called w/o the parent dir locked.
sptlrpc_target_local_copy_conf() should not call lookup_one_len() directly, but ll_lookup_one_len()
instead which locks the parent dir for you and also checks for bad inode.

Change-Id: I4d020c55382238bbbc6df6017f54b5b585f53c48
Signed-off-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/303
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdfilter/filter.c
lustre/ptlrpc/sec_config.c