lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 24 Dec 2020 14:14:33 +0800
From:   Coly Li <colyli@...e.de>
To:     Yi Li <yili@...hong.com>
Cc:     yilikernel@...il.com, kent.overstreet@...il.com,
        linux-bcache@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] bcache: set pdev_set_uuid before scond loop iteration

On 12/24/20 9:53 AM, Yi Li wrote:
> There is no need to reassign pdev_set_uuid in the second loop iteration,
> so move it to the place before second loop.
> 
> Signed-off-by: Yi Li <yili@...hong.com>

Added into my for-next directory. Thanks.

Coly Li

> ---
>  drivers/md/bcache/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
> index a4752ac410dc..6aa23a6fb394 100644
> --- a/drivers/md/bcache/super.c
> +++ b/drivers/md/bcache/super.c
> @@ -2644,8 +2644,8 @@ static ssize_t bch_pending_bdevs_cleanup(struct kobject *k,
>  	}
>  
>  	list_for_each_entry_safe(pdev, tpdev, &pending_devs, list) {
> +		char *pdev_set_uuid = pdev->dc->sb.set_uuid;
>  		list_for_each_entry_safe(c, tc, &bch_cache_sets, list) {
> -			char *pdev_set_uuid = pdev->dc->sb.set_uuid;
>  			char *set_uuid = c->set_uuid;
>  
>  			if (!memcmp(pdev_set_uuid, set_uuid, 16)) {
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ