public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 8139too on 2.2.19 doesn't close file descriptors
  2001-05-17 22:04 8139too on 2.2.19 doesn't close file descriptors Santiago Garcia Mantinan
@ 2000-08-03  2:38 ` Jens David
  2001-05-18 10:52 ` Andrew Morton
  1 sibling, 0 replies; 4+ messages in thread
From: Jens David @ 2000-08-03  2:38 UTC (permalink / raw)
  To: Santiago Garcia Mantinan; +Cc: linux-kernel

Hi,

On Thursday 17 May 2001 23:04, you wrote:
> Hi!
>
> I was tracking down a problem with Debian installation freezing when doing
> the ifconfig of the 8139too driver on 2.2.19 kernel, and found that this
> was caused by 8139too for 2.2.19 not closing it's file descriptors.
>
> The original code by Jeff for the 2.4 series is ok, and searching for the
> cause of the problem I have found a difference in the way rtl8139_thread
> exits on both versions:
>
> 2.2 version:
>         up (&tp->thr_exited);
>         return 0;
>
> 2.4 version:
>         up_and_exit (&tp->thr_exited, 0);
>
> I think the problem must be there, not doing the do_exit on the 2.2
> version, but I may be wrong, can anybody look this up?

I added the exit_files(current) to the version in my source repository. Will 
be contained in the next releases. Thanks!
Btw.: CC'ing me was a good idea, I'm not on linux-kernel, only on linux-net
due to mail volume.

  -- Jens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* 8139too on 2.2.19 doesn't close file descriptors
@ 2001-05-17 22:04 Santiago Garcia Mantinan
  2000-08-03  2:38 ` Jens David
  2001-05-18 10:52 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Santiago Garcia Mantinan @ 2001-05-17 22:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens David

Hi!

I was tracking down a problem with Debian installation freezing when doing
the ifconfig of the 8139too driver on 2.2.19 kernel, and found that this was
caused by 8139too for 2.2.19 not closing it's file descriptors.

The original code by Jeff for the 2.4 series is ok, and searching for the
cause of the problem I have found a difference in the way rtl8139_thread
exits on both versions:

2.2 version:
        up (&tp->thr_exited);
        return 0;

2.4 version:
        up_and_exit (&tp->thr_exited, 0);

I think the problem must be there, not doing the do_exit on the 2.2 version,
but I may be wrong, can anybody look this up?

Thanks in advance!

Regards...
-- 
Manty/BestiaTester -> http://manty.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 8139too on 2.2.19 doesn't close file descriptors
  2001-05-17 22:04 8139too on 2.2.19 doesn't close file descriptors Santiago Garcia Mantinan
  2000-08-03  2:38 ` Jens David
@ 2001-05-18 10:52 ` Andrew Morton
  2001-05-18 15:34   ` Santiago Garcia Mantinan
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2001-05-18 10:52 UTC (permalink / raw)
  To: Santiago Garcia Mantinan; +Cc: linux-kernel, Jens David

Santiago Garcia Mantinan wrote:
> 
> Hi!
> 
> I was tracking down a problem with Debian installation freezing when doing
> the ifconfig of the 8139too driver on 2.2.19 kernel, and found that this was
> caused by 8139too for 2.2.19 not closing it's file descriptors.
> 
> The original code by Jeff for the 2.4 series is ok, and searching for the
> cause of the problem I have found a difference in the way rtl8139_thread
> exits on both versions:
> 
> 2.2 version:
>         up (&tp->thr_exited);
>         return 0;
> 
> 2.4 version:
>         up_and_exit (&tp->thr_exited, 0);
> 
> I think the problem must be there, not doing the do_exit on the 2.2 version,
> but I may be wrong, can anybody look this up?

No, that's OK.

In 2.2, daemonize() does *not* do exit_files().  In 2.4
it does.  I wonder why?

Try putting an

	exit_files(current);

at the start of rtl8139_thread()

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 8139too on 2.2.19 doesn't close file descriptors
  2001-05-18 10:52 ` Andrew Morton
@ 2001-05-18 15:34   ` Santiago Garcia Mantinan
  0 siblings, 0 replies; 4+ messages in thread
From: Santiago Garcia Mantinan @ 2001-05-18 15:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Jens David

> No, that's OK.

I realised about this when I inserted up_and_exit on 2.2 and still it did
the same :-)

> Try putting an
> 	exit_files(current);
> at the start of rtl8139_thread()

Yes, this seems to solve the problem, thanks!

Regards...
-- 
Manty/BestiaTester -> http://manty.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-18 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-17 22:04 8139too on 2.2.19 doesn't close file descriptors Santiago Garcia Mantinan
2000-08-03  2:38 ` Jens David
2001-05-18 10:52 ` Andrew Morton
2001-05-18 15:34   ` Santiago Garcia Mantinan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox