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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091109021331.GA2399@hack>
Date:	Mon, 9 Nov 2009 10:13:31 +0800
From:	Américo Wang <xiyou.wangcong@...il.com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <peterz@...radead.org>,
	Jeff Dike <jdike@...toit.com>
Subject: Re: [patch 07/16] um: Replace old style lock initializer

On Fri, Nov 06, 2009 at 10:41:33PM -0000, Thomas Gleixner wrote:
>SPIN_LOCK_UNLOCKED is deprecated since quite a while. Runtime init the
>locks instead.
>
>Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
>Cc: Jeff Dike <jdike@...toit.com>

Acked-by: WANG Cong <xiyou.wangcong@...il.com>

Thanks.

>---
> arch/um/drivers/ubd_kern.c |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>Index: linux-2.6/arch/um/drivers/ubd_kern.c
>===================================================================
>--- linux-2.6.orig/arch/um/drivers/ubd_kern.c
>+++ linux-2.6/arch/um/drivers/ubd_kern.c
>@@ -180,7 +180,6 @@ struct ubd {
> 	.no_cow =               0, \
> 	.shared =		0, \
> 	.cow =			DEFAULT_COW, \
>-	.lock =			SPIN_LOCK_UNLOCKED,	\
> 	.request =		NULL, \
> 	.start_sg =		0, \
> 	.end_sg =		0, \
>@@ -838,6 +837,7 @@ static int ubd_add(int n, char **error_o
> 
> 	ubd_dev->size = ROUND_BLOCK(ubd_dev->size);
> 
>+	spin_lock_init(&ubd_dev->lock);
> 	INIT_LIST_HEAD(&ubd_dev->restart);
> 	sg_init_table(ubd_dev->sg, MAX_SG);
> 
>
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@...r.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

-- 
Live like a child, think like the god.
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ