LU-1484 lprocfs: handle hidden proc_dir_entry users

The RHEL 5.9 2.6.18-348.1.1.el5 kernel uses both the new style
"pde_users" and the old style "deleted" flags for marking a
proc_dir_entry as deleted.  Unfortunately, the new "pde_users"
data is hidden in an external structure that is not visible to
the callers or in the headers (for binary compatibility I guess?)
so our configure checks cannot find it.

Instead, just check for proc_fops == NULL in a racy manner on
such kernels, since we cannot do locking and the locking is
mostly just needed as a memory barrier since pde_fops could
become NULL at any time after dropping the lock.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I05cae305e24ffff09a06e3ad17c28c175c3ebbe5
Reviewed-on: http://review.whamcloud.com/5253
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
LU-2631 build: fix o2ib build for 2.6.18-348.el5 kernel

Adding scsi/fc_compat.h to lustre-lnet.m4 and o2iblnd.h to build
o2ib modules for 2.6.18-348.el5 kernel.

Signed-off-by: Shuichi Ihara <sihara@ddn.com>
Change-Id: I496eaf9977f44e90bfde7ff68215da8e651688dd
Reviewed-on: http://review.whamcloud.com/5051
Tested-by: Hudson
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
LU-2467 protocol: Add OBD_CONNECT_PINGLESS

Reserve a bit for OBD_CONNECT_PINGLESS, which indicates a client is
capable of suppressing keep-alive OBD_PINGs.  If granted by a server,
it means the server does not require (but still allows) pings.

Change-Id: Id19f979650ffdcb117feb3c28fe7755add1013c6
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/5231
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>