From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: "Luis R. Rodriguez" <mcgrof@suse.com>,
Tom Gundersen <teg@jklm.no>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Tejun Heo <tj@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Arjan van de Ven <arjan@linux.intel.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Olof Johansson <olof@lixom.net>,
Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Subject: Re: [PATCH 2/8] driver-core: add asynchronous probing support for drivers
Date: Wed, 8 Jul 2015 17:57:58 -0700 [thread overview]
Message-ID: <20150709005758.GG379@dtor-ws> (raw)
In-Reply-To: <CAPcyv4gDEaBof-x_mUigayTv36MZrUMbkDbh0bzy0SbboePtHw@mail.gmail.com>
On Wed, Jul 08, 2015 at 05:54:26PM -0700, Dan Williams wrote:
> On Wed, Jul 8, 2015 at 5:52 PM, Dmitry Torokhov
> <dmitry.torokhov@gmail.com> wrote:
> > On Wed, Jul 08, 2015 at 05:43:23PM -0700, Dan Williams wrote:
> >> On Mon, Jul 6, 2015 at 4:38 PM, Dmitry Torokhov
> >> <dmitry.torokhov@gmail.com> wrote:
> >> > On Sat, Jul 04, 2015 at 07:09:19AM -0700, Dan Williams wrote:
> >> >> The problem I ran into was needing to remove devices that still had
> >> >> yet to be probed and not being able to use registration completion vs
> >> >> the device_lock() to effectively synchronize the sub-system.
> >> >
> >> > Why do you need to "synchronize the sub-system"? The asynchronous
> >> > probing should be transparent to the driver. Just unregister the device
> >> > (or the driver) and driver core will ensure that probe() is not in
> >> > flight.
> >>
> >> Async registration is indeed transparent to the driver. The primary
> >> need to "flush registration" is the case of "region" devices that
> >> reference a set of NVDIMM devices. A region device requires all
> >> related NVDIMMs to be active before the region can be enabled.
> >
> > Sounds like you need to call into the subsystem to let it know that the
> > device is active and activate region devices when they are ready. Could
> > be either explicit call or you can try using bus notifiers for
> > bind/unbind events.
> >
> > BTW, do you handle bind/unbind via sysfs (everyone forgets about this
> > mechanism)?
>
> bind/unbind via systs is central to how libnvdimm operates. It's
> covered by our unit tests.
Ah, excellent then.
--
Dmitry
next prev parent reply other threads:[~2015-07-09 0:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-04 14:09 [PATCH 2/8] driver-core: add asynchronous probing support for drivers Dan Williams
2015-07-06 23:23 ` Luis R. Rodriguez
2015-07-06 23:40 ` Dmitry Torokhov
2015-07-09 0:36 ` Dan Williams
2015-07-09 0:49 ` Dmitry Torokhov
2015-07-09 1:00 ` Dan Williams
2015-07-09 4:44 ` Dmitry Torokhov
2015-07-09 5:14 ` Dan Williams
2015-07-07 8:45 ` Tom Gundersen
2015-07-06 23:38 ` Dmitry Torokhov
2015-07-09 0:43 ` Dan Williams
2015-07-09 0:52 ` Dmitry Torokhov
2015-07-09 0:54 ` Dan Williams
2015-07-09 0:57 ` Dmitry Torokhov [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-03-30 23:20 [PATCH v2 0/8] Asynchronous device/driver probing support Dmitry Torokhov
2015-03-30 23:20 ` [PATCH 2/8] driver-core: add asynchronous probing support for drivers Dmitry Torokhov
2015-05-29 10:48 ` Tomeu Vizoso
2015-05-29 13:23 ` Tomeu Vizoso
2015-06-01 12:04 ` Tomeu Vizoso
2015-07-06 23:41 ` Dmitry Torokhov
2015-06-27 23:45 ` Dan Williams
2015-07-03 18:30 ` Luis R. Rodriguez
2015-07-06 23:33 ` Dmitry Torokhov
2015-01-16 23:33 [PATCH 0/8] Asynchronous device/driver probing support Dmitry Torokhov
2015-01-16 23:33 ` [PATCH 2/8] driver-core: add asynchronous probing support for drivers Dmitry Torokhov
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=20150709005758.GG379@dtor-ws \
--to=dmitry.torokhov@gmail.com \
--cc=arjan@linux.intel.com \
--cc=dan.j.williams@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@suse.com \
--cc=olof@lixom.net \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=rusty@rustcorp.com.au \
--cc=teg@jklm.no \
--cc=tj@kernel.org \
/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