linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: patch dlm-device-interface.patch added to -mm tree
       [not found] <200505170740.j4H7e4Qw021556@shell0.pdx.osdl.net>
@ 2005-05-17 17:06 ` Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-05-17 17:06 UTC (permalink / raw)
  To: teigland, pcaulfie; +Cc: akpm, linux-kernel

On Tuesday 17 May 2005 11:39, akpm@osdl.org wrote:
> This is a separate module from the dlm.  It exports the dlm api to user space
> through a misc device.  Applications use a library (libdlm) which communicates
> with the kernel through this device.

> --- /dev/null
> +++ 25-akpm/drivers/dlm/device.c

> +static struct lock_info *get_lockinfo(uint32_t lockid)
> +{
> +	struct lock_info *li;
> +
> +	read_lock(&lockinfo_lock);
> +	li = idr_find(&lockinfo_idr, lockid);
> +	read_lock(&lockinfo_lock);
	^^^^^^^^^
> +
> +	return li;
> +}

read_unlock ?

> +int __init dlm_device_init(void)
> +{

> +		printk(KERN_ERR "dlm: misc_register failed for control device");

device\n

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-17 17:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200505170740.j4H7e4Qw021556@shell0.pdx.osdl.net>
2005-05-17 17:06 ` patch dlm-device-interface.patch added to -mm tree Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).