[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4732D817.2060300@gmail.com>
Date: Thu, 08 Nov 2007 18:34:15 +0900
From: Tejun Heo <htejun@...il.com>
To: balagi@...tmail.de
CC: Peter Osterlund <petero2@...ia.com>,
Jens Axboe <jens.axboe@...cle.com>,
linux-kernel <linux-kernel@...r.kernel.org>, gregkh@...e.de
Subject: Re: pktcdvd oops
balagi@...tmail.de wrote:
> Hello,
>
> tested it too, running linux 2.6.23 in a qemu instance, and the patch worked.
> But i would prefer to take the try_module_get() stuff into pkt_setup_dev() because
> it is used also in the older procfs interface. Can we run into the same problem here, means
> procfs holds no module references too, like sysfs now?
procfs should be okay. sysfs was too intertwined with driver model and
module reference counting never worked well. We had to pull module
reference counting out of there.
> Maybe also the "/sys/class/pktcdvd/remove" command should be wrapped with an
> try_module_get() ???
No, I don't think so. The code won't go away beneath it. After
module_put() the module can die (ie. calling __module_get() on it will
trigger BUG) but it won't go away till the function finishes.
Thanks.
--
tejun
-
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