mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Evan Lavelle <sa212+lkml@cyconix.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Kernel deferring driver 'close' call: workaround?
Date: Wed, 26 Jan 2011 13:17:03 +0000	[thread overview]
Message-ID: <20110126131703.3033ad87@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4D401824.6090109@cyconix.com>

> 'strace' shows that the 'close' succeeds, but the driver debug output 
> shows that the driver close/release (step 2) is not called before the 
> next open (step 3), so the open fails.

I imagine the user has a bug in their app. The close method is called on
the final close of the handle. That means if for example you do something
like fork off a child process and forget to close the handle then it
won't actually close down until the final user closes it.

Alan

  reply	other threads:[~2011-01-26 13:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 12:48 Evan Lavelle
2011-01-26 13:17 ` Alan Cox [this message]
2011-01-26 14:29   ` Evan Lavelle
2011-01-26 14:38     ` Alan Cox
2011-01-26 15:29       ` Evan Lavelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110126131703.3033ad87@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sa212+lkml@cyconix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®