LU-4554 lfsck: old single-OI MDT always scrubbed

Old ldiskfs MDT's that contain a single OI container named "oi.16"
trigger an automatic OI scrub on each restart.  This is because
osd_oi_table_open() gets ENOENT opening "oi.16.0" and consequently
sets bit 0 in scrub_file::sf_oi_bitmap.  This bit indicates the OI
container 0 needs to be recreated, and it triggers a scrub in
osd_fid_lookup() for lookups that fail with ENOENT.  Fix this by
clearing the bit in osd_oi_init() after a successful open of
"oi.16".

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: Ie69223d3f8289c90de46f9afe0a2de0e0625b0f6
LU-4454 libcfs: warn if all HTs in a core are gone

libcfs cpu partition can't support CPU hotplug, but it is safe
when plug-in new CPU or enabling/disabling hyper-threading.
It has potential risk only if plug-out CPU because it may break CPU
affinity of Lustre threads.

Current libcfs will print warning for all CPU notification, this
patch changed this behavior and only output warning when we lost all
HTs in a CPU core which may have broken affinity of Lustre threads.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: I62267b62871c129beeb1593c4f69e7b81a79999d
Reviewed-on: http://review.whamcloud.com/8770
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
LU-3806 obdclass: add LCT_SERVER_SESSION for server session

Add LCT_SERVER_SESSION for server session, and separate the
server session flag from LCT_SESSION, so to avoid allocating
session info for client stack for each server request, if
client and server are on the same node.

This also prevents server crash when lustre module
is unloaded while IOs are in progress (LU-1165).

Signed-off-by: Wang Di <di.wang@intel.com>
Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: I68965374ce53d735186780d2d3f1bf083a0e8658
LU-4345 quota: debug patch

Added some debug message to figure out where the fake uid comes from.

(Taken from attachment on LU-4345)

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ib9243723f6b70caf313f0a0de5bd10567e2987a3
LU-4597 ldlm: Add some extra checks for ldlm timeout handling

This is a testing only change not intended for landing.

Change-Id: I69dfe095fda7904d14d6ef034928b9d96dde2add
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Patch-Set: 1
Revert "LU-4345 quota: debug patch"

This reverts commit a827883dfbbd909da2f5f054950bd9cf38bf1946.
LU-4345 quota: debug patch

Added some debug message to figure out where the fake uid comes from.

(Taken from attachment on LU-4345)

Morrone: Updated message to inlude bug number and change 7000 check to 70000.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ib9243723f6b70caf313f0a0de5bd10567e2987a3