linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: mtd: blktrans: Hotplug fixes
@ 2010-07-14 17:27 Ben Hutchings
  2010-07-22 17:44 ` [PATCH 2.6.35] mtd: blktrans: Move device and module ref-counting back to open/release Ben Hutchings
  0 siblings, 1 reply; 12+ messages in thread
From: Ben Hutchings @ 2010-07-14 17:27 UTC (permalink / raw)
  To: Maxim Levitsky, David Woodhouse; +Cc: linux-mtd

commit 048d87199566663e4edc4880df3703c04bcf41d9 "mtd: blktrans: Hotplug
fixes" causes the MTD and the MTD driver module's ref-counts to be
bumped for each block device that is created, whether or not it's
actually in use.

This means that before removing an MTD or driver module one must first
remove all the associated block devices.  But normally the block devices
will be removed only when the MTDs themselves are removed.  This mutual
dependency can't even be resolved by poking at 'unbind' files in sysfs,
because block-translation drivers don't appear in the driver model!

Unless I'm missing something, this does not fix hotplug but completely
breaks it.  Please revert it and find a better way to fix locking in the
block-translation layer.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

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

end of thread, other threads:[~2010-09-23 21:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 17:27 mtd: blktrans: Hotplug fixes Ben Hutchings
2010-07-22 17:44 ` [PATCH 2.6.35] mtd: blktrans: Move device and module ref-counting back to open/release Ben Hutchings
2010-07-24 16:07   ` Maxim Levitsky
2010-07-24 17:03     ` Ben Hutchings
2010-07-25  7:41       ` Maxim Levitsky
2010-07-27 17:40         ` Ben Hutchings
2010-09-05 23:34   ` Kevin Cernekee
2010-09-07 10:27     ` Artem Bityutskiy
2010-09-07 20:54       ` Maxim Levitsky
2010-09-20  8:30     ` Artem Bityutskiy
2010-09-20 21:47       ` Kevin Cernekee
2010-09-23 21:14         ` Maxim Levitsky

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).