[PATCH 1/2] rtl8723bs: Fix spelling errors

2019-11-29 Thread Andreas Hellmich
Fix spelling errors. Co-developed-by: Annika Knepper Signed-off-by: Annika Knepper Signed-off-by: Andreas Hellmich --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 36 +-- .../staging/rtl8723bs/hal/HalPhyRf_8723B.c| 6 ++-- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c

[PATCH 2/2] rtl8723bs: Fix line length

2019-11-29 Thread Andreas Hellmich
Fix some line length errors. Co-developed-by: Annika Knepper Signed-off-by: Annika Knepper Signed-off-by: Andreas Hellmich --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 24 +++--- .../staging/rtl8723bs/hal/HalPhyRf_8723B.c| 10 -- .../staging/rtl8723bs/hal

Re: [PATCH] staging: rtl8723bs: fix comparsion to true/false and brace issues

2018-06-30 Thread Andreas Schwab
> + if (manual) > hal_btcoex_SetManualControl(padapter, true); > - } else{ > + else > hal_btcoex_SetManualControl(padapter, false); > - } aka. hal_btcoex_SetManualControl(padapter, manual); Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47

Re: [lustre-devel] [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-03 Thread Andreas Dilger
On Jun 3, 2018, at 9:59 PM, Alexey Lyashkov wrote: > >> On Sun, Jun 03 2018, Dilger, Andreas wrote: >> >>> LNet is originally based on a high-performance networking stack called >>> Portals (v3, http://www.cs.sandia.gov/Portals/), with additions for LNet &

Re: [lustre-devel] [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-03 Thread Dilger, Andreas
e protocol into pNFS made a lot of sense, since this would have only really been available on Linux, at which point it would be better to use the native Lustre client rather than funnel everything through pNFS. However, _just_ using the LNet transport for (p)NFS might make sense. LNet is largely inde

Re: [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-01 Thread Andreas Dilger
lso (finally) allow us to get this code in sync with the out-of-tree code and converge on a single tree. Cheers, Andreas > And getting code out of staging is the main goal of that portion of the > kernel tree. Code should not stagnate and it feels like having this > code in staging is o

Re: [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-01 Thread Andreas Dilger
fs client code with simple IP-only networking. Adding or removing the IB networking makes basically no difference to the code size. This would also make the client much less useful, since a large number of sites use Lustre with IB networks. Cheers, Andreas signature.asc Description

Re: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers

2018-05-31 Thread Dilger, Andreas
but rather Lustre release version checks. This allows us to remove workarounds like this in the future when they are no longer needed, rather than accumulating cruft forever. It's like the separation of NFSv2 vs NFSv3 vs NFSv4. Cheers, Andreas -- Andreas Dilger Lustre Principal Arc

Re: [PATCH 4/4] staging: lustre: obdclass: change object lookup to no wait mode

2018-05-16 Thread Dilger, Andreas
;>> unlikely built in so it's duplicative... >> >> Sounds like a good checkpatch case to test for :-) > > The likely/unlikely annotations have their place in fast paths so a > checkpatch warning would get annoying... I think James was suggesting a

Re: [lustre-devel] [PATCH] staging: lustre: Fix an error handling path in 'client_common_fill_super()'

2018-05-12 Thread Dilger, Andreas
On May 12, 2018, at 00:33, Christophe JAILLET wrote: > > According to error handling path before and after this one, we should go > to 'out_md_fid' here, instead of 'out_md', if 'obd_connect()' fails. > > Signed-off-by: Christophe JAILL

Re: [lustre-devel] [PATCH] staging: lustre: fix spelling mistake: "req_ulinked" -> "req_unlinked"

2018-05-11 Thread Dilger, Andreas
On May 11, 2018, at 07:38, Colin King wrote: > > From: Colin Ian King > > Trivial fix to spelling mistake in DEBUG_REQ message text > > Signed-off-by: Colin Ian King Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/ptlrpc/client.c | 2 +- >

Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv

2018-05-04 Thread Dilger, Andreas
curity risk for future implementations. Also, to improve code > readability and make static analysis tools happy, which will warn > about read-verify-re-read type bugs, this issue should be fixed. There is nothing preventing the user from using struct lov_mds_md_v3 but filling in lmm_magic

Re: [PATCH 1/4] staging: lustre: obdclass: change spinlock of key to rwlock

2018-05-03 Thread Dilger, Andreas
mentId=121776#comment-121776 That said, it might be good to include this information into the commit comment itself. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv

2018-04-30 Thread Dilger, Andreas
lmm_magic. > > This patch rechecks the version field lmm_magic in the second copy. If the > version is not as expected, i.e., LOV_USER_MAGIC_V3, an error code will be > returned: -EINVAL. > > Signed-off-by: Wenwen Wang Thanks for the updated patch. Reviewed-by: Andreas Dilger &g

Re: [PATCH] staging: luster: llite: fix a potential missing-check bug when copying lumv

2018-04-30 Thread Dilger, Andreas
On Apr 29, 2018, at 07:20, Greg Kroah-Hartman wrote: > > On Sat, Apr 28, 2018 at 04:04:25PM +, Dilger, Andreas wrote: >> On Apr 27, 2018, at 17:45, Wenwen Wang wrote: >>> [PATCH] staging: luster: llite: fix potential missing-check bug when >>> copying lumv

Re: [PATCH] staging: luster: llite: fix a potential missing-check bug when copying lumv

2018-04-28 Thread Dilger, Andreas
copied, which is harmless. > This patch rechecks the version field lmm_magic in the second copy. If the > version is not as expected, i.e., LOV_USER_MAGIC_V3, an error code will be > returned: -EINVAL. This isn't a bad idea in any case, since it verifies the data copied from users

Re: [lustre-devel] [PATCH v2] staging: lustre: Remove VLA usage

2018-03-09 Thread Dilger, Andreas
in calculation). > > [1] https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Kees Cook > Reviewed-by: Rasmus Villemoes This seems better than the VLA_SAFE() macro, at the cost of an extra kmalloc. I don't think these code paths are super performance critical. Reviewed-b

Re: [PATCH] staging: lustre: llite: replace variable length array

2018-01-29 Thread Dilger, Andreas
sky. This is essentially returning the pointer _before_ "name" on the assumption that it contains the full "prefix.name" string. IMHO, that is not necessarily a safe assumption to make several layers down in the code. James, I thought you had a patch for this to use kaspri

Re: [PATCH] staging: lustre: lnet: return of an error code should be negative

2018-01-29 Thread Dilger, Andreas
On Jan 27, 2018, at 22:24, Sumit Pundir wrote: > > Return value of error codes should typically be negative. > Issue reported by checkpatch.pl > > Signed-off-by: Sumit Pundir Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/selftest/framework.c | 2 +

Re: [PATCH v4] staging: lustre: separate a connection destroy from free struct kib_conn

2018-01-25 Thread Dilger, Andreas
destroy_conn() and free as it was intended in original > commit. > > Cc: # v4.6 > Fixes: 4d99b2581eff ("staging: lustre: avoid intensive reconnecting for > ko2iblnd") > Signed-off-by: Dmitry Eremin Reviewed-by: Andreas Dilger > --- > Changes in v4: >-

Re: [PATCH 6/8] staging: lustre: Fix overlong lines

2018-01-18 Thread Dilger, Andreas
); > int class_procfs_clean(void); > > /* prng.c */ > -#define ll_generate_random_uuid(uuid_out) get_random_bytes(uuid_out, > sizeof(class_uuid_t)) > +#define ll_generate_random_uuid(uuid_out) \ > + get_random_bytes(uuid_ou

Re: [PATCH] staging: lustre: Fix avoid intensive reconnecting for ko2iblnd patch

2018-01-16 Thread Dilger, Andreas
; } >> >> -kfree(conn); >> +if (free_conn) >> +kfree(conn); > > This looks really odd, don't you think? I'm not sure what the objection is here? There is an argument to this this function named "free_conn" w

Re: [PATCH] drivers: lustre: obdclass: simplify unregister_shrinker() usage

2018-01-02 Thread Dilger, Andreas
against unregistered shrinker. > > Signed-off-by: Aliaksei Karaliou Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/obdclass/lu_object.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/staging/lustre/lustre/obdclass/lu_ob

Re: [lustre-devel] [PATCH v4] staging: lustre: Replace 'uint32_t' with 'u32' and 'uint64_t' with 'u64'

2017-12-24 Thread Dilger, Andreas
/linux/kernel/1506.0/00160.html > > 2) There are only few places in the lustre codebase that use such types. > In the most cases it uses 'u32' and 'u64'. > > Signed-off-by: Roman Storozhenko Reviewed-by: Andreas Dilger > > --- > In the

Re: [PATCH] staging: lustre: check result of register_shrinker

2017-12-04 Thread Dilger, Andreas
t; obdclass_init(), > which at least calls lu_global_fini() before exiting `module_init` on further > failure, > but yeah, still lacks proper cleanup inside lu_global_initcall(). > I'll add one more patch in a patch-set so that maintainers may decide what to > do with that.

Re: [PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()

2017-12-04 Thread Dilger, Andreas
u can add: Signed-off-by: Andreas Dilger Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: lustre: check result of register_shrinker

2017-12-02 Thread Dilger, Andreas
; - if (!page_pools.epp_pools) > - return -ENOMEM; > - > - register_shrinker(&pools_shrinker); > + if (page_pools.epp_pools) { > + rc = register_shrinker(&pools_shrinker); > + if (rc) > + enc_pools_free(); > +

Re: [PATCH v2] Replace 'uint32_t' with 'u32' and 'uint64_t' with 'u64'

2017-11-17 Thread Dilger, Andreas
ch types. > In the most cases it uses 'u32' and 'u64'. > > Signed-off-by: Roman Storozhenko Reviewed-by: Andreas Dilger > --- > In the first version of this patch I replaced 'uint32_t' with '__u32' and > 'uint64_t' with '_

Re: [lustre-devel] [PATCH] staging: lustre: Replaces 'uint32_t' with '__u32' and 'uint64_t' with '__u64'.

2017-11-13 Thread Dilger, Andreas
> On Nov 9, 2017, at 03:57, Roman Storozhenko wrote: > > On Thu, Nov 9, 2017 at 1:06 PM, Dilger, Andreas > wrote: >> On Nov 3, 2017, at 06:36, Roman Storozhenko wrote: >>> >>> On Fri, Nov 03, 2017 at 12:46:18PM +0100, Greg Kroah-Hartman wrote: >>&

Re: [PATCH] staging: lustre: Replaces 'uint32_t' with '__u32' and 'uint64_t' with '__u64'.

2017-11-09 Thread Dilger, Andreas
back to you sooner, I was traveling. I'm not sure what you mean by the .h files aren't used in client code? I checked all of the headers, and all of the structures that were changed, and they all looked to be in use. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 06/11] staging: lustre: add SPDX identifiers to all lustre files

2017-11-08 Thread Dilger, Andreas
On Nov 7, 2017, at 23:15, Greg Kroah-Hartman wrote: > > On Wed, Nov 08, 2017 at 12:35:43AM +, Dilger, Andreas wrote: >> On Nov 7, 2017, at 06:58, Greg Kroah-Hartman >> wrote: >>> >>> It's good to have SPDX identifiers in all files to make it easier

Re: [PATCH 06/11] staging: lustre: add SPDX identifiers to all lustre files

2017-11-07 Thread Dilger, Andreas
#x27;d prefer not to have a dozen follow-on patches because checkpatch.pl complains about C++ comments. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: lustre: Replaces 'uint32_t' with '__u32' and 'uint64_t' with '__u64'.

2017-10-31 Thread Dilger, Andreas
ch types. > In the most cases it uses '__u32' and '__u64'. > > Signed-off-by: Roman Storozhenko Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/include/lustre_sec.h | 4 ++-- > drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +- &

Re: [PATCH] staging: lustre: Replaces 'uint32_t' with '__u32' and 'uint64_t' with '__u64'.

2017-10-31 Thread Dilger, Andreas
ch types. > In the most cases it uses '__u32' and '__u64'. > > Signed-off-by: Roman Storozhenko Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/include/lustre_sec.h | 4 ++-- > drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +- &

Re: [PATCH] lustre: don't set f_version in ll_readdir

2017-10-30 Thread Dilger, Andreas
On Oct 30, 2017, at 23:00, Jeff Layton wrote: > > From: Jeff Layton > > f_version is only ever used by filesystem-specific code. Generic > VFS code never uses it. > > Nothing in lustre ever looks at it, so just remove this. > > Signed-off-by: Jeff Layton

Re: [PATCH 18/20] staging: lustre: osc: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
On Oct 12, 2017, at 10:17, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 1077598 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger

Re: [PATCH 12/20] staging: lustre: lnet: selftest: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
On Oct 12, 2017, at 10:17, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/l

Re: [PATCH 20/20] staging: lustre: rpc: mark expected switch fall-throughs

2017-10-17 Thread Dilger, Andreas
. Silva Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/selftest/rpc.c | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c > b/drivers/staging/lustre/lnet/selftest/rpc.c > index 77c22

Re: [PATCH 19/20] staging: lustre: ptlrpc: mark expected switch fall-throughs

2017-10-17 Thread Dilger, Andreas
On Oct 12, 2017, at 10:17, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/staging

Re: [PATCH 17/20] staging: lustre: ldlm: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
On Oct 12, 2017, at 10:17, Gustavo A. R. Silva wrote: > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/stagi

Re: [PATCH 16/20] staging: lustre: lprocfs: mark expected switch fall-throughs

2017-10-17 Thread Dilger, Andreas
t; Addresses-Coverity-ID: 1271169 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_s

Re: [PATCH 15/20] staging: lustre: llite: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
ent to a separate line? Not the end of the world though. Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/llite/namei.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/lustre/lustre/llite/namei.c > b/drivers/staging/lus

Re: [PATCH 14/20] staging: lustre: lnet: selftest: mark expected switch fall-throughs

2017-10-17 Thread Dilger, Andreas
On Oct 12, 2017, at 10:17, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/stag

Re: [PATCH 05/20] staging: lustre: lnet: net_fault: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
t appear harmful. Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/lnet/net_fault.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/lustre/lnet/lnet/net_fault.c > b/drivers/staging/lustre/lnet/lnet/net_fault.c > index 03f3d18..7391e16 100644 &

Re: [PATCH 02/20] staging: lustre: lnet: socklnd: mark expected switch fall-through

2017-10-17 Thread Dilger, Andreas
t not harmful either. Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c > b/drivers/staging/lustre/lnet/klnds/sock

Re: [PATCH] staging: r8822be: Fix typo for CONFIG_RTLWIFI_DEBUG

2017-08-30 Thread Andreas Ziegler
s - 8188eu, 8723bs - that struct lives in include/rtw_xmit.h). Is a comparable header simply missing? Regards, Andreas On 08/29/17 16:42, Greg KH wrote: > On Tue, Aug 29, 2017 at 09:10:10AM -0500, Larry Finger wrote: >> On 08/29/2017 06:30 AM, Andreas Ziegler wrote: >>> The debugg

[PATCH] staging: r8822be: Fix typo for CONFIG_RTLWIFI_DEBUG

2017-08-29 Thread Andreas Ziegler
The debugging output in deinit_priv is guarded by an #ifdef using CONFIG_RTL_DEBUG. This symbol does not exist and should be CONFIG_RTLWIFI_DEBUG instead. Signed-off-by: Andreas Ziegler --- drivers/staging/rtlwifi/halmac/rtl_halmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: staging: r8822be: Add code for halmac sub-driver

2017-08-29 Thread Andreas Ziegler
attached a patch which fixes this problem. Best regards, Andreas Ziegler [0]: I called the script like this: './scripts/checkkconfigsymbols.py --force -c 938a0447f094' From 6c713900ed877c01f94fb76630f9ffd32c73ec88 Mon Sep 17 00:00:00 2001 From: Andreas Ziegler Date: Tue, 29 Aug 2017 12:5

Re: [PATCH] staging: lustre: lustre: Off by two in lmv_fid2path()

2017-08-18 Thread Dilger, Andreas
> > So what am I supposed to do with this patch? The patch has been reviewed and you could add them before landing: Reviewed-by: John L. Hammond Reviewed-by: frank zago Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: lustre: fix structure size for ARM OABI

2017-08-18 Thread Dilger, Andreas
+), 1 deletion(-) > > This file is no longer in the tree :( With James' recent patch series, this has moved to include/uapi/linux/lustre/lustre_user.h Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 4/4] Staging: Lustre Fix block statement style issue

2017-07-17 Thread Dilger, Andreas
to just shorten the comment, if possible, like: struct ksock_lnet_msg lnetmsg; /* lnet message, empty if NOOP */ Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v5] staging: lustre: lnet: remove dead code and useless wrapper

2017-07-12 Thread Dilger, Andreas
ited before semicolon > > Signed-off-by: Dmitriy Cherkasov Reviewed-by: Andreas Dilger > --- > v5: > - fix incomplete patch changelog > - improve code alignment > - reword commit message and summary to be more concise > v4: > - fix spa

Re: [PATCH v5] staging: lustre: lnet: remove dead code and useless wrapper

2017-07-12 Thread Dilger, Andreas
ited before semicolon > > Signed-off-by: Dmitriy Cherkasov Reviewed-by: Andreas Dilger > --- > v5: > - fix incomplete patch changelog > - improve code alignment > - reword commit message and summary to be more concise > v4: > - fix spa

Re: [PATCH 8/8] Staging: lustre :lustre: include :lustre_compat.h: Prefer using the BIT macro

2017-07-11 Thread Dilger, Andreas
uot; header was previously used for compatibility between different kernel versions, which is why it is now basically empty. It isn't used for userspace interfaces as other "compat" headers are in the kernel. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 3/4] Staging: Lustre Fixing multiline block comments in lnetst.h

2017-07-11 Thread Dilger, Andreas
_batch command */ >> +}; /* test summary entry, for >> + * list_batch command >> + */ > > That's odd, what was the *** stuff for? > > I'd like to get a lustre maintainer's

Re: [PATCH] staging: lustre: headers: potential UAPI headers

2017-06-12 Thread Dilger, Andreas
-I /usr/include/linux" (in addition to the normal "/usr/include") but it will work transparently to the code, regardless of where the headers are located or which kernel is being used. On the maintainability point of view, I'd also think that putting headers into a separate subdir would also be preferable just to avoid /usr/include/uapi/linux from growing huge. There are already several storage-related sybsystems that have their headers in a subdirectory, like ceph, cifs, mtd, nfsd, raid, and sunrpc. Cheers, Andreas ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/2] staging: lustre: lprocfs: Use kstrtouint_from_user

2017-05-18 Thread Dilger, Andreas
On May 18, 2017, at 17:13, Mathias Rav wrote: > > On Thu, 18 May 2017 14:48:25 + > "Dilger, Andreas" wrote: > >> On May 18, 2017, at 15:53, Greg Kroah-Hartman >> wrote: >>> >>> On Thu, May 04, 2017 at 12:13:38PM -0400, Math

Re: [PATCH 1/2] staging: lustre: lprocfs: Use kstrtouint_from_user

2017-05-18 Thread Dilger, Andreas
; -if (dummy == end) >> -return -EINVAL; >> - >> -*p = (unsigned int)tmp; >> -return count; >> +return kstrtouint_from_user(buffer, count, 0, (unsigned int *)data); > > Why not just delete this whole function and have the callers make

Re: [Patch v3 1/2] lustre: Parantheses added for Macro argument to avoid precedence issues

2017-04-18 Thread Dilger, Andreas
t;> +++ b/drivers/staging/lustre/lustre/obdclass/cl_io.c >> @@ -52,9 +52,9 @@ >> */ >> >> #define cl_io_for_each(slice, io) \ >> -list_for_each_entry((slice), &io->ci_layers, cis_linkage) >> + list_for_each_entry((slice), &(io)->ci_layers, c

Re: [Patch v3 2/2] lustre: CONSTANTS put on right side of comparison test

2017-04-18 Thread Dilger, Andreas
from sending the same patch in the future... Cheers, Andreas > Signed-off-by: Rishiraj Manwatkar > --- > v1 -> v2: Added mailing list in cc. > v2 -> v3: Improved Subject line. > drivers/staging/lustre/lustre/obdclass/cl_io.c | 4 ++-- > 1 file changed, 2 insertions(+),

Re: [PATCH v2] staging: lustre: Fix sparse endianness warnings cast to restricted __le64 and __le32

2017-04-18 Thread Dilger, Andreas
h should really have been marked "[PATCH v3]", but hopefully Greg will still notice this one. Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/include/lustre/lustre_idl.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/dr

Re: [lustre-devel] [PATCH RESEND v2] Staging: lustre cleanup macros in libcfs_private.h

2017-04-18 Thread Dilger, Andreas
;t think there was any particular reason for "do { } while(0)" here except force of habit. Reviewed-by: Andreas Dilger > --- > Changes in v2: >- Kept statements together >- Kept operator on previous line > > .../lustre/include/linux/libcfs/libcfs_private.h | 51

Re: [PATCH] Staging: lustre cleanup macros in libcfs_private.h

2017-04-05 Thread Dilger, Andreas
> \ > + "value: %d\n", atomic_read((a))) Minor nit - in cases like this where you need to split the line anyway, it is cleaner (IMHO) to keep the whole statement together: #define LASSERT_ATOMIC_EQ(a, v)

Re: [lustre-devel] [PATCH] drivers/staging/lustre: Coding-guideline: Missing a blank line after declarations

2017-04-05 Thread Dilger, Andreas
that code when the more expensive LINVRNT() checking is enabled, but is disabled most of the time. With an empty expression this wouldn't happen at all, and errors may creep in. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] Remove sparse warnings in mdc_request.c

2017-03-28 Thread Dilger, Andreas
cture on big-endian systems. The right fix would be to change the declaration of ldp_hash_start and ldp_hash_end from __u64 to __le64, along with ldp_flags and ldp_pad0 (though it should be unused). Cheers, Andreas > CHECK drivers/staging/lustre/lustre/mdc/mdc_request.c > drivers/staging

Re: [PATCH] staging: lustre: Remove redundant code

2017-03-24 Thread Dilger, Andreas
directly in the code, since that is easy enough to read compared to (1 << LNET_MSG_*) everywhere. There don't seem to be a lot of users, so this wouldn't be a giant patch. Cheers, Andreas -- Andreas Dilger Lustre Principal Architect Intel Corporation ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-23 Thread Dilger, Andreas
On Mar 22, 2017, at 06:12, Dilger, Andreas wrote: > > On Mar 21, 2017, at 22:39, Arushi Singhal > wrote: >> >> This patch replaces bit shifting on 1 with the BIT(x) macro. >> This was done with coccinelle: [snip] >> diff --git a/drivers/staging/lustre/ln

Re: [PATCH v2] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-23 Thread Dilger, Andreas
On Mar 22, 2017, at 09:53, Arushi Singhal wrote: > > This patch replaces bit shifting on 1 with the BIT(x) macro. > This was done with coccinelle: > @@ > constant c; > @@ > > -1 << c > +BIT(c) > > Signed-off-by: Arushi Singhal Reviewed-by: Andreas Di

Re: [PATCH] staging: lustre: Replace a bit shift by a use of BIT.

2017-03-22 Thread Dilger, Andreas
f2 100644 > --- a/drivers/staging/lustre/lustre/obdclass/lustre_handles.c > +++ b/drivers/staging/lustre/lustre/obdclass/lustre_handles.c > @@ -49,7 +49,7 @@ static struct handle_bucket { > struct list_headhead; > } *handle_hash; > > -#define HANDLE_HASH_SIZE (1 <&l

Re: [PATCH] staging: media: Replace a bit shift by a use of BIT.

2017-03-22 Thread Dilger, Andreas
struct sk_buff *skb, struct > net_device *dev) > #endif > work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || > (ip_hdr(skb)->frag_off == > - 1 << 1

Re: [PATCH] Minor coding guideline Fix in lusture module

2017-03-09 Thread Dilger, Andreas
unsigned" with "unsigned int" > Replacing 'unsigned' with 'unsigned int' in vvp_pgcache_id. Remove double space, and reference function names like vvp_pgcache_id(). > Checkpath.pl passed. "checkpatch.pl" Cheers, Andreas > Signed-off-by: P

Re: [PATCH 5/5] staging: lustre: osc_page.c: Use list_for_each_entry_safe

2017-03-07 Thread Dilger, Andreas
re. Unless you really understand the state machine of > the lustre code I don't recommend these kinds of change > for lustre. It may be useful to add a comment to these cases where the while() loop cannot be replaced by list_for_each_entry_safe() (with details of why that is the case) to a

Re: [lustre-devel] [PATCH 10/60] staging: lustre: obdclass: add more info to sysfs version string

2017-02-07 Thread Dilger, Andreas
> On Feb 3, 2017, at 03:33, Greg Kroah-Hartman > wrote: > > On Sat, Jan 28, 2017 at 07:04:38PM -0500, James Simmons wrote: >> From: Andreas Dilger >> >> Update the sysfs "version" file to print "lustre: " with >> the version numbe

Re: [PATCH] staging: lustre: remove CLASSERT macro

2017-02-02 Thread Dilger, Andreas
> (0) > > As Greg suggested, let's just kill off this macro completely instead of > fixing it. This replaces it with BUILD_BUG_ON(), which means we have > to negate all the conditions in the process. > > Signed-off-by: Arnd Bergmann I appreciate that you also fix

Re: [PATCH] staging: lustre: shut up clang warnings on CLASSERT()

2017-02-01 Thread Dilger, Andreas
gt; (0) > > Adding a 'default:' label in there shuts up the warning. > > Signed-off-by: Arnd Bergmann Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/include/linux/libcfs/libcfs_private.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > &

Re: [PATCH 1/2] staging: lustre: libcfs: use octal permissions

2017-01-24 Thread Dilger, Andreas
On Jan 24, 2017, at 09:40, Ernestas Kulik wrote: > > Using octal permissions instead of symbolic ones is preferred. Typically the reverse is true - using symbolic constants is preferred over numeric ones. Where does this recommendation come from? Cheers, Andreas > Signed-off-by:

Re: [lustre-devel] [PATCH] staging: lustre: selftest: Make brw_inject_one_error() static

2017-01-12 Thread Dilger, Andreas
On Dec 23, 2016, at 08:42, Karthik Nayak wrote: > > Since the function brw_inject_one_error() is used only within > brw_test.c, make it static. This was reported as a warning by sparse. > > Signed-off-by: Karthik Nayak Reviewed-by: Andreas Dilger > --- > drivers/staging

Re: [PATCH] Staging: lustre: lustre: lmv: Compress return logic into one line.

2017-01-08 Thread Dilger, Andreas
> -ret = > +return > e; > -return ret; > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/lmv/lmv_obd.c | 58 - > 1 file changed, 16 insertions(+), 42 deletions(-) > > diff --gi

Re: [PATCH] staging : osc : coding style fix

2016-12-14 Thread Dilger, Andreas
. > This warning is found using checkpatch.pl. The commit body is good. Please resubmit with a new summary line, then you can include: Reviewed-by: Andreas Dilger Cheers, Andreas > Signed-off-by: Tabrez khan > --- > drivers/staging/lustre/lustre/osc/osc_cache.c | 4 +--- >

Re: [PATCH v2 5/5] staging: lustre: headers: use proper byteorder functions in lustre_idl.h

2016-12-12 Thread Dilger, Andreas
isk.h, swab.h, etc.). That said, if there is an objection to keeping these macros/inline funcs in the uapi headers, they still need to exist in the kernel and should be kept in the lustre/include/lustre directory and we'll keep a separate copy of the macros for us

Re: [lustre-devel] [PATCH 3/6] staging: lustre: obdclass: Create a header for obdo related functions

2016-12-05 Thread Dilger, Andreas
g blocks of code between files and this doesn't appear cleanly in the patch then I'd ask for a separate patch. Cheers, Andreas ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [patch] staging: lustre: lnet: memory corruption in selftest

2016-11-25 Thread Dilger, Andreas
On Nov 24, 2016, at 04:10, Dan Carpenter wrote: > > We want sizeof(struct lstcon_node) but instead we're getting the sizeof > a pointer. > > Fixes: 8d78f0f2ba76 ("staging: lustre: lnet: cleanup some of the > 80 line > issues") > Signed-off-by: Dan

Re: [lustre-devel] [PATCH 09/10] staging: lustre: libcfs: remove zero comparisons in headers

2016-11-25 Thread Dilger, Andreas
very comparison with 0 in all of the code, as that can reduce readability in some cases. I know this patch has already landed, and it isn't the end of the world either way, but just wanted to forestall similar changes being made through the rest of the code. Cheers, Andreas ___

Re: [lustre-devel] [patch] staging: lustre/ptlrpc: small leak on allocation failure

2016-11-25 Thread Dilger, Andreas
On Nov 24, 2016, at 04:12, Dan Carpenter wrote: > > We should free "desc" before returning NULL. > > Signed-off-by: Dan Carpenter Reviewed-by: Andreas Dilger > diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c > b/drivers/staging/lustre/lustre/ptl

Re: [PATCH] staging: lustre: lov: Fix signed wrap around when decrementing index 'i'

2016-11-10 Thread Dilger, Andreas
overityScan, CID 1375917 Thanks for the patch. Seems this change has gotten a lot of attention, this is the third patch to the list to fix it. My preference is to undo the int->unsigned declaration change, for which James has already submitted a patch. Cheers, Andreas > Signed-off-by: C

Re: [lustre-devel] [PATCH] staging: lustre: ldlm: pl_recalc time handling is wrong

2016-11-08 Thread Dilger, Andreas
l_sec will correctly reflect the actual elapsed time rather than just the number of ticks inside the VM. Is my understanding of these different clocks correct? Cheers, Andreas > > Signed-off-by: James Simmons > --- > drivers/staging/lustre/lustre/ldlm/ldlm_pool.c |6 +++--- >

Re: [lustre-devel] [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-11-07 Thread Dilger, Andreas
On Nov 7, 2016, at 02:07, Aya Mahfouz wrote: > > On Mon, Nov 7, 2016 at 6:22 AM, Oleg Drokin wrote: > >> On Nov 4, 2016, at 4:37 AM, Aya Mahfouz wrote: >> >> > >> > On Thu, Nov 3, 2016 at 1:05 AM, Dilger, Andreas >> > wrote: >>

Re: [PATCH 2/2] staging: lustre: obdclass: Add handling of error returned by lustre_cfg_new

2016-11-07 Thread Dilger, Andreas
;d agree with Oleg that returning NULL is the preferable solution here. There are also callers of lustre_cfg_new() in class_config_llog_handler(), do_lcfg(), and lustre_end_log() that do not check error returns at all that should be fixed at the same time. Cheers, Andreas >>

Re: [PATCH] staging: lustre: o2iblnd: use bool assignment to true/false

2016-11-07 Thread Dilger, Andreas
On Nov 7, 2016, at 12:01, Nicholas Hanley wrote: > > Replace 0 with false in tx_pages_mapped = 0 to be consistent with > the rest of the lustre code. > > Signed-off-by: Nicholas Hanley Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/klnds/o2iblnd/o2ib

Re: [PATCH v2] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
e > > Signed-off-by: Andrew Kanner Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c > b/drivers/sta

Re: [PATCH] staging: lustre: fixed shadowed variable in socklnd_cb.c

2016-11-03 Thread Dilger, Andreas
closely (or from a greater distance, hard to say), the outer-scope "tx" is used only after this inner-scope "tx", so in fact there is no benefit to having the inner-scope declaration at all. Removing it may save a stack variable (depending on how the compiler optimizes), and shouldn

Re: [lustre-devel] [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-11-02 Thread Dilger, Andreas
On Oct 25, 2016, at 10:47, Aya Mahfouz wrote: > > On Mon, Oct 17, 2016 at 10:38:31PM +, Dilger, Andreas wrote: >> On Oct 17, 2016, at 15:46, Aya Mahfouz >> wrote: >>> >>> class_devno_max is an inline function that returns >>> MAX_OBD_DEVI

Re: [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-10-17 Thread Dilger, Andreas
(i = 0; i < MAX_OBD_DEVICES; i++) > obd_devs[i] = NULL; This block can just be removed entirely. It used to do something useful, but through a series of changes it has become useless. Cheers, Andreas > /* Default the dirty page cache cap to 1/2 of system memory. &

Re: [lustre-devel] [PATCH] staging: lustre: ko2iblbd: handle ib_dereg_mr removal

2016-10-02 Thread Dilger, Andreas
eg_mr() or hdev->...->dereg_mr() ? > hdev->ibh_mrs = NULL; > } > > @@ -2316,13 +2316,18 @@ static int kiblnd_hdev_setup_mrs(struct kib_hca_dev > *hdev) > if (rc) > return rc; > > - mr = ib_get_dma_mr(hdev->ibh_pd, acflags); >

Re: [lustre-devel] [PATCH 030/124] staging: lustre: llite: Replace write mutex with range lock

2016-09-19 Thread Dilger, Andreas
, but not sure whether that is acceptable if the only user is in staging. Cheers, Andreas ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Dilger, Andreas
ng: context imbalance in 'lock_res_and_lock' - wrong > count at exit > l_lock.c:61:6: warning: context imbalance in 'unlock_res_and_lock' - > unexpected unlock > > Signed-off-by: Nayeemahmed Badebade Reviewed-by: Andreas Dilger > --- > > Changes in v2: > *

Re: [PATCH] staging: lustre: lmv: mark symbols static where possible

2016-09-18 Thread Dilger, Andreas
ch marks these functions with 'static'. > > Signed-off-by: Baoyou Xie Reviewed by: Andreas Dilger > --- > drivers/staging/lustre/lustre/lmv/lmv_obd.c | 38 - > 1 file changed, 21 insertions(+), 17 deletions(-) > > diff --git a/drivers/sta

Re: [PATCH] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Dilger, Andreas
On Sep 18, 2016, at 14:21, nayeem wrote: > On Friday 16 September 2016 01:30 PM, Dilger, Andreas wrote: >> On Sep 15, 2016, at 12:33, nayeem wrote: >>> On Wednesday 14 September 2016 10:44 AM, Dilger, Andreas wrote: >>>> On Sep 12, 2016, at 04:27, Greg KH wrot

Re: [PATCH] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-16 Thread Dilger, Andreas
On Sep 15, 2016, at 12:33, nayeem wrote: > On Wednesday 14 September 2016 10:44 AM, Dilger, Andreas wrote: >> On Sep 12, 2016, at 04:27, Greg KH wrote: >>> >>> On Fri, Sep 09, 2016 at 08:50:35PM +0530, Nayeemahmed Badebade wrote: >>>> Added __acquires

Re: [PATCH] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-13 Thread Dilger, Andreas
correct, along with the corresponding "__releases(&lock->l_lock)" at unlock_res_and_lock(). The problem, however, is that "l_resource" is not a lock, but rather a struct. The call to "lock_res(lock->l_resource)" is actually locking "lr_loc

  1   2   3   >