Since libcfs no longer builds for user land we can
move the TCPIP abstraction that exist to the LNET
layer which is the only place that uses it. Also
the migrated code will use native linux kernel
APIs directly instead of with wrappers.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id
Both lnet_res_container_setup and lnet_res_container_create
have additional parameters that are no longer used with the
removal of the FREELIST code. This patch removes the no
longer needed function arguments.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, alignmemnts etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h| 32 +-
.../staging/lustre/include/linux/lnet/lib-lnet.h | 36 +-
.../staging
/LU-2675
Reviewed-on: http://review.whamcloud.com/13121
Reviewed-by: James Simmons uja.o...@gmail.com
Reviewed-by: Amir Shehata amir.sheh...@intel.com
Reviewed-by: Oleg Drokin oleg.dro...@intel.com
---
.../staging/lustre/include/linux/lnet/lib-lnet.h | 215 +---
.../staging
Currently several special macros LNet NID macros exist
in libcfs.h and libcfs_private.h. Move those macros
out to the lnet header types.h. The new lnet header
nidstr.h contains LNet NID string data that can be
used by user land LNet utilities and the LNet kernel
drivers.
Signed-off-by: James
Point to the right place for GNU license. Update Intel copyright.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h| 13 +
.../staging/lustre/include/linux/lnet/lib-lnet.h | 10 +++---
.../staging/lustre/include
that no longer exist are handled directly in the
source code. Alongside that some user land router code is
also removed.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../lustre/include/linux/lnet/api-support.h| 44 --
.../staging/lustre/include/linux/lnet/lib-lnet.h
land will use.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/13792
Reviewed-by: John L. Hammond john.hamm...@intel.com
Reviewed-by: Andreas Dilger andreas.dil...@intel.com
James Simmons (7
Currently the lnet headers used by user land contain various internal
LNet structures that are only used by kernel space. Move the user land
structures to headers used by user land. The kernel structures are
relocated to headers that are never exposed to user land.
Signed-off-by: James Simmons
For the functions LNetInit and LNetFini move away from
camel case to lnet_init and lnet_fini.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h|3 ---
.../staging/lustre/include/linux/lnet/lib-lnet.h |3 +++
.../staging/lustre
There is no reason to have a one line exported function
libcfs_sock_release. Instead we can call sock_release directly.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1 -
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|2
Instead of handling calls to struct proto ourselves we can use
equivalent kernel wrappers. No wrapper exist for unlocked ioctl
handling so we create one here for our use. I expect some day
that function will be integrated into sock.c.
Signed-off-by: James Simmons jsimm...@infradead.org
Another one of those silly one line wrappers which is not
needed. Replace libcfs_sock_abort_accept wrapper with a
direct call to wake_up_all on the lnet_acceptor_state sock.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1
Rename libcfs/linux/linux-tcpip.c to lnet/lnet/lib-socket.c
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet/lnet/Makefile |7 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 624
drivers/staging/lustre/lustre/libcfs
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, spaces in function calls,
etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 207
Point to the right place for GNU license. Update Intel copyright.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++---
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c
With all the TCPIP handling done in the lnet layer we should
rename all the functions with the prefix lnet_*. One other
change done was changing the remove argument of lnet_sock_getaddr
from a int to a bool.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux
that are
pushed in this patch.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/13793
Reviewed-by: Dmitry Eremin dmitry.ere...@intel.com
Reviewed-by: John L. Hammond john.hamm...@intel.com
Reviewed
Point to the right place for GNU license. Update Intel copyright.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++---
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, spaces in function calls,
etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 203
With all the TCPIP handling done in the lnet layer we should
rename all the functions with the prefix lnet_*. One other
change done was changing the remove argument of lnet_sock_getaddr
from a int to a bool.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux
Instead of handling calls to struct proto ourselves we can use
equivalent kernel wrappers. No wrapper exist for unlocked ioctl
handling so we create one here for our use. I expect some day
that function will be integrated into sock.c.
Signed-off-by: James Simmons jsimm...@infradead.org
There is no reason to have a one line exported function
libcfs_sock_release. Instead we can call sock_release directly.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1 -
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|2
Another one of those silly one line wrappers which is not
needed. Replace libcfs_sock_abort_accept wrapper with a
direct call to wake_up_all on the lnet_acceptor_state sock.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1
Since libcfs no longer builds for user land we can
move the TCPIP abstraction that exist to the LNET
layer which is the only place that uses it. Also
the migrated code will use native linux kernel
APIs directly instead of with wrappers.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id
Rename libcfs/linux/linux-tcpip.c to lnet/lnet/lib-socket.c
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet/lnet/Makefile |7 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 624
drivers/staging/lustre/lustre/libcfs
Another one of those silly one line wrappers which is not
needed. Replace libcfs_sock_abort_accept wrapper with a
direct call to wake_up_all on the lnet_acceptor_state sock.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1
Since libcfs no longer builds for user land we can
move the TCPIP abstraction that exist to the LNET
layer which is the only place that uses it. Also
the migrated code will use native linux kernel
APIs directly instead of with wrappers.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id
With all the TCPIP handling done in the lnet layer we should
rename all the functions with the prefix lnet_*. One other
change done was changing the remove argument of lnet_sock_getaddr
from a int to a bool.
Signed-off-by: James Simmons jsimmons at infradead.org
---
.../staging/lustre/include
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, spaces in function calls,
etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 210
Instead of handling calls to struct proto ourselves we can use
equivalent kernel wrappers. No wrapper exist for unlocked ioctl
handling so we create one here for our use. I expect some day
that function will be integrated into sock.c.
Signed-off-by: James Simmons jsimm...@infradead.org
There is no reason to have a one line exported function
libcfs_sock_release. Instead we can call sock_release directly.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1 -
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|2
The header socklnd.h includes irq.h which is not need
and doesn't exist in the OpenSFS lustre branch. Having
irq.h in socklnd.h does break the build on the m68k
platform. So we can safely remove it.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/lnet/klnds/socklnd
land will use.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/13792
Reviewed-by: John L. Hammond john.hamm...@intel.com
Reviewed-by: Andreas Dilger andreas.dil...@intel.com
James Simmons (6
...@intel.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675
Reviewed-on: http://review.whamcloud.com/12932
Reviewed-by: Isaac Huang he.hu...@intel.com
Reviewed-by: James Simmons uja.o...@gmail.com
Reviewed-by: Oleg Drokin oleg.dro...@intel.com
Signed-off-by: James Simmons jsimm...@infradead.org
Currently several special macros LNet NID macros exist
in libcfs.h and libcfs_private.h. Move those macros
out to the lnet header types.h. The new lnet header
nidstr.h contains LNet NID string data that can be
used by user land LNet utilities and the LNet kernel
drivers.
Signed-off-by: James
Remove ralnd, ptllnd, mxlnd, qswlnd drivers. They are no
longer supported and have not even been buildable
for a long time.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6209
Reviewed-on: http://review.whamcloud.com/13663
Reviewed-by: Isaac
-2675
Reviewed-on: http://review.whamcloud.com/12932
Reviewed-by: Isaac Huang he.hu...@intel.com
Reviewed-by: James Simmons uja.o...@gmail.com
Reviewed-by: Oleg Drokin oleg.dro...@intel.com
---
.../lustre/include/linux/lnet/api-support.h| 44 --
.../staging/lustre/include/linux/lnet/lib
Currently the lnet headers used by user land contain various internal
LNet structures that are only used by kernel space. Move the user land
structures to headers used by user land. The kernel structures are
relocated to headers that are never exposed to user land.
Signed-off-by: James Simmons
Point to the right place for GNU license. Update Intel copyright.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h| 13 +
.../staging/lustre/include/linux/lnet/lib-lnet.h | 10 +++---
.../staging/lustre/include
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, spaces in function calls,
alignments etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h| 32 +-
.../staging/lustre/include/linux/lnet/lib-lnet.h
that was merged to the
Intel/OpenSFS branch.
Signed-off-by: John L. Hammond john.hamm...@intel.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675
Reviewed-on: http://review.whamcloud.com/12932
Reviewed-by: Isaac Huang he.hu...@intel.com
Reviewed-by: James Simmons uja.o...@gmail.com
Reviewed
For the functions LNetInit and LNetFini move away from
camel case to lnet_init and lnet_fini.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/include/linux/lnet/api.h|3 ---
.../staging/lustre/include/linux/lnet/lib-lnet.h |3 +++
.../staging/lustre
This is the first set of patches that are current in the Intel branch
which are apart of the effort to cleanup LNet/libcfs.
James Simmons (3):
staging:lustre: remove tcpip abstraction from libcfs
staging:lustre: remove kernel defines in userland headers
staging:lustre: cleanup libcfs lock
From: James Simmons uja.o...@yahoo.com
Currently the lnet headers used for user land applications
contain various kernel definations. This is due to the
fact libcfs contains kernel wrappers for user land which
will be going away. This patch sorted the header data
so all kernel containing
From: James Simmons uja.o...@yahoo.com
Since libcfs no longer builds for user land we can
move the TCPIP abstraction that exist to the LNET
layer which is the only place that uses it. Also
the migrated code will use native linux kernel
APIs directly instead of with wrappers.
Signed-off-by: James
that are
pushed in this patch.
Signed-off-by: James Simmons uja.o...@gmail.com
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/13793
Reviewed-by: Dmitry Eremin dmitry.ere...@intel.com
Reviewed-by: John L. Hammond john.hamm...@intel.com
Reviewed
There is no reason to have a one line exported function
libcfs_sock_release. Instead we can call sock_release directly.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1 -
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|2
Point to the right place for GNU license. Update Intel copyright.
Signed-off-by: James Simmons jsimm...@infradead.org
---
drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++---
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c
Another one of those silly one line wrappers which is not
needed. Replace libcfs_sock_abort_accept wrapper with a
direct call to wake_up_all on the lnet_acceptor_state sock.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux/libcfs/libcfs.h |1
With all the TCPIP handling done in the lnet layer we should
rename all the functions with the prefix lnet_*. One other
change done was changing the remove argument of lnet_sock_getaddr
from a int to a bool.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/include/linux
Handle all the style issues reported by checkpatch.pl.
Remove general white spaces, spaces in function calls,
etc.
Signed-off-by: James Simmons jsimm...@infradead.org
---
.../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +-
drivers/staging/lustre/lnet/lnet/lib-socket.c | 210
Instead of handling calls to struct proto ourselves we can use
equivalent kernel wrappers. No wrapper exist for unlocked ioctl
handling so we create one here for our use. I expect some day
that function will be integrated into sock.c.
Signed-off-by: James Simmons jsimm...@infradead.org
From: James Simmons <uja.o...@yahoo.com>
Cleanup all the unneeded white space in hash.c.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lustre/libcfs/hash.c | 342 ++-
1 files changed, 177 insertions(+), 165 deletions(-)
From: James Simmons <uja.o...@yahoo.com>
Cleanup all the unneeded white space in libcfs_hash.h.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h | 135 ++--
1 files changed, 70 insertions(+), 65 deleti
From: James Simmons <uja.o...@yahoo.com>
Remove comment hash_long which was removed long ago.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |7 ---
1 files changed, 0 insertions(+), 7 deletions(-)
diff --g
From: James Simmons <uja.o...@yahoo.com>
This patch covers more style cleanup series for the libcfs
hash code. Mostly removal of white spaces and resolving the
checkpath issues in libcfs_hash.h.
James Simmons (6):
staging: lustre: remove white space in libcfs_hash.h
staging: lustre:
From: James Simmons <uja.o...@yahoo.com>
Minor style cleanup to put hash.h header to the top of the
libcfs_hash.h file.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |5 +++--
1 files changed, 3 insertions(+),
From: James Simmons <uja.o...@yahoo.com>
Final cleanup to make libcfs_hash.h completely kernel standard
compliant.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h | 25 ---
1 files changed, 16 inse
From: James Simmons <uja.o...@yahoo.com>
Always place linux headers first in libcfs header files.
This avoid can potential build issues if any changes to
a libcfs header land that starts using a linux header
definition.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
dri
With nidstr.h now having the latest fixes we can
now clean up all the remaining checkpatch errors
for this header.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/include/linux/lnet/nidstr.h |9 +++--
1 files changed, 7 insertions(+), 2 deletions(-)
With nidstring now having the latest fixes we can
now clean up all the remaining checkpatch errors
for nidstring.c.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lnet/lnet/nidstrings.c | 80 ++---
1 files changed, 44 insertions(
Remove the remaining white spaces in nidstring.c.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lnet/lnet/nidstrings.c | 18 +-
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/lustre/lnet/lnet/nidstring
Last patch set to make nidstring.c and nidstr.h both report
no errors with checkpatch and removal of the remaining white
spaces.
James Simmons (3):
staging: lustre: checkpatch cleanups for nidstring.c
staging: lustre: white space cleanups for nidstring.c
staging: lustre: checkpatch cleanups
From: James Simmons <uja.o...@yahoo.com>
Fix up all the over 80 character line issues in libcfs_hash.h
reported by checkpatch.pl. At the same time update this header
to match what is in the OpenSFS lustre branch.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/i
From: James Simmons <uja.o...@yahoo.com>
Change cfs_hash_ops_t to struct cfs_hash_ops.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h | 21 ++-
drivers/staging/lustre/lustre/ldlm/ldlm_resou
From: James Simmons <uja.o...@yahoo.com>
Final cleanup to make libcfs_hash.h completely kernel standard
compliant.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h | 16 ++--
1 files changed, 10 insertions(+),
From: James Simmons <uja.o...@yahoo.com>
Change the last typedef data types cfs_hash_lookup_intent_t
to enum and cfs_hash_cond_arg_t to a structure.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lustre/libcfs/hash.c | 18 +-
1 f
From: James Simmons <uja.o...@yahoo.com>
Change cfs_hash_dhead_t and cfs_head_dhead_dep_to
from typedef to true structures.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |4 +-
drivers/staging/lustre/lustre/l
From: James Simmons <uja.o...@yahoo.com>
Cleanup all the unneeded white space in libcfs_hash.h.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h | 147 ++--
1 files changed, 73 insertions(+), 74 deleti
From: James Simmons <uja.o...@yahoo.com>
Change cfs_hash_head_t and cfs_head_head_dep_t
from typedef to true structures.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |4 +-
drivers/staging/lustre/lustre/l
From: James Simmons <uja.o...@yahoo.com>
Cleanup all the unneeded white space in hash.c.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lustre/libcfs/hash.c | 336 ++-
1 files changed, 174 insertions(+), 162 deletions(-)
From: James Simmons <uja.o...@yahoo.com>
This patch brings the libcfs hash handling up to linux
kernel coding style. Various typedefs and macros have
been removed.
Signed-off-by: James Simmons <uja.o...@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Revie
From: James Simmons <uja.o...@yahoo.com>
Change cfs_hash_lock_ops_t to struct cfs_hash_lock_ops.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |4 ++--
drivers/staging/lustre/lustre/libcfs/hash.c| 12 +++
From: James Simmons <uja.o...@yahoo.com>
Change cfs_hash_hlist_ops_t to struct cfs_hash_hlist_ops.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_hash.h |4 ++--
drivers/staging/lustre/lustre/libcfs/hash.c|8
: http://review.whamcloud.com/14270
Reviewed-by: Nathan Rutman <nathan.rut...@seagate.com>
Reviewed-by: James Simmons <uja.o...@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: John L. Hammond <john.hamm...@intel.com>
Reviewed-by: Oleg Drokin <oleg.d
<nathan.rut...@seagate.com>
Reviewed-by: James Simmons <uja.o...@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: John L. Hammond <john.hamm...@intel.com>
Reviewed-by: Oleg Drokin <oleg.dro...@intel.com>
Signed-off-by: James Simmons <jsimm.
Reviewed-by: James Simmons <uja.o...@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: John L. Hammond <john.hamm...@intel.com>
Reviewed-by: Oleg Drokin <oleg.dro...@intel.com>
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
245
Reviewed-on: http://review.whamcloud.com/14270
Reviewed-by: Nathan Rutman <nathan.rut...@seagate.com>
Reviewed-by: James Simmons <uja.o...@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: John L. Hammond <john.hamm...@intel.com>
Reviewed-by
During the removal of the cfs wrappers the kg_sem semaphore
was handled incorrectly. We need to take a write lock when
writing data to the kkuc_groups. The libcfs_kkuc_group_foreach
needs to only take a read lock. This makes use match the
OpenSFS development branch.
Signed-off-by: James Simmons
Since forward declarations are frowned on upstream we move
the NID range handling to near the start of the nidstring.c
file.
Signed-off-by: James Simmons <uja.o...@yahoo.com>
Reviewed-on: http://review.whamcloud.com/15086
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Re
From: Joshua Walgenbach
This is a partial backport of the NID range management
added in for nodemap. We only backport the libcfs related
parts here.
Signed-off-by: Joshua Walgenbach
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3527
Reviewed-on:
om/browse/LU-1778
Reviewed-on: http://review.whamcloud.com/9221
Reviewed-by: Andreas Dilger <andreas.dil...@intel.com>
Reviewed-by: Liang Zhen <liang.z...@intel.com>
Reviewed-by: Oleg Drokin <oleg.dro...@intel.com>
Signed-off-by: James Simmons <uja.o...@yahoo.com>
if we just remove the last entry
since it is not used for anything except as a last
entry marker.
Signed-off-by: Frederic Saunier <frederic.saun...@atos.net>
Signed-off-by: James Simmons <uja.o...@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6501
Reviewed-on: http://re
-off-by: James Simmons <uja.o...@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245
Reviewed-on: http://review.whamcloud.com/15083
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: Bob Glossman <bob.gloss...@intel.com>
Reviewed-by: Oleg Drokin <
Update struct netstrfns to use C99 initializers.
Remove old LND types from the netstrfns table, as they are
long obsolete and shouldn't be needed even for interop anymore.
Signed-off-by: James Simmons <uja.o...@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6210
Reviewed-on
MAX_NUMERIC_VALUE
defination.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
drivers/staging/lustre/lnet/lnet/Makefile |2 +-
.../{lustre/libcfs => lnet/lnet}/nidstrings.c | 13 +
drivers/staging/lustre/lustre/libcfs/Makefile |2 +-
..
Both of cfs_ip_addr_parse and cfs_ip_addr_match which are located in
libcfs kernel module are used only for LNet so move this into the
nidstring handling code where it belongs. Also create user land
versions of these functions in the libcfs user land library.
Signed-off-by: James Simmons <uj
No need to have a one line wrapper in libcfs that only
is used to delete a list which is only done once in the
LNet layer.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_string.h|1 -
drivers/staging/lustre/lnet/lnet/co
All the function libcfs_init_string did was initialize
a spinlock. We can initialize the spinlock statically
instead.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../staging/lustre/include/linux/libcfs/libcfs.h |2 --
drivers/staging/lustre/lnet/lnet/nidstrings.c
From: Dmitry Eremin
Provide duplicates with separate buffers for libcfs_*2str() functions.
Replace libcfs_nid2str() with libcfs_nid2str_r() function in critical
places.
Provide buffer size for nf_addr2str functions.
Use __u32 as nf_type always
Signed-off-by: Dmitry
From: Fan Yong
Add the ability to debug LFSCK to libcfs. This is
broken out of patch http://review.whamcloud.com/6321.
Signed-off-by: Fan Yong
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2914
Reviewed-on: http://review.whamcloud.com/6321
From: frank zago
Adds __acquires / __releases / __must_hold sparse locking annotations to
several functions.
Fixes sparse warnings such as:
libcfs/libcfs/hash.c:127:1: warning: context imbalance in 'cfs_hash_spin_lock'
- wrong count at exit
libcfs/libcfs/hash.c:133:1:
From: Fan Yong
Create a kernel side function that does the same
thing as userland strrstr. This is from patch
http://review.whamcloud.com/7666.
Signed-off-by: Fan Yong
ntel-bug-id: https://jira.hpdd.intel.com/browse/LU-3951
Reviewed-on:
-by: James Simmons <jsimm...@infradead.org>
---
.../lustre/include/linux/libcfs/libcfs_ioctl.h |1 -
drivers/staging/lustre/lustre/libcfs/module.c | 17 -
2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/drivers/staging/lustre/include/linux/
We need cfs_str2mask exported for our server code.
Even with the server code not available upstream
it would be nice to use the upstream code on Lustre
servers.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../staging/lustre/lustre/libcfs/libcfs_string.c |1 +
1 files c
version of cfs_cpt_nodemask and use that
in ost_setup.
Signed-off-by: James Simmons <uja.o...@gmail.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4199
Reviewed-on: http://review.whamcloud.com/9219
Reviewed-by: Liang Zhen <liang.z...@intel.com>
Reviewed-by: Li Xi <pkuel
From: Fan Yong
Cleanup the a style issues for the lu_object_header_flags
enum by adding a comma for the last field. This is
broken out of patch http://review.whamcloud.com/6321.
Signed-off-by: Fan Yong
Intel-bug-id:
Add in missing braces for libcfs_kkuc_group_put();.
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
.../staging/lustre/lustre/obdclass/kernelcomm.c|4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/kernelcom
Reviewed-by: James Simmons <uja.o...@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com>
Reviewed-by: John L. Hammond <john.hamm...@intel.com>
Reviewed-by: Oleg Drokin <oleg.dro...@intel.com>
Signed-off-by: James Simmons <jsimm...@infradead.org>
---
1 - 100 of 1637 matches
Mail list logo