Whamcloud - gitweb
LU-9241 llite: ASSERTION( de->d_op == &ll_d_ops ) failed 09/26109/3
authorAndriy Skulysh <andriy.skulysh@seagate.com>
Wed, 22 Mar 2017 10:21:15 +0000 (12:21 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 16 May 2017 05:46:38 +0000 (05:46 +0000)
commit49f4bd032446a9f7c594b5b2ca130e2a45714262
treee63beb3e5628d8ce2714ec83a9f17a1d7b1ac798
parente96c70e04ff2644909b96d94d4718117f7402a40
LU-9241 llite: ASSERTION( de->d_op == &ll_d_ops ) failed

The assertion can be checked while dentry isn't fully
initialized in HAVE_DCACHE_LOCK case.

Reorder assignments to make assertion always true.
Later ll_dentry_data bitfields modification should be
protected by a spinlock.

Change-Id: I4a1ea42b9fe1c9398539a1a241b8a191dba5903c
Seagate-bug-id: MRP-4257
Signed-off-by: Andriy Skulysh <andriy.skulysh@seagate.com>
Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-on: https://review.whamcloud.com/26109
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/dcache.c
lustre/llite/llite_nfs.c