Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1253689
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/6] vfio: platform: reset: add vfio_platform_reset_private.h |
| Date | 2015-10-22 12:20 +0200 |
| Message-ID | <qml8u-7Jh-1@gated-at.bofh.it> (permalink) |
| References | <qmkFs-6UJ-7@gated-at.bofh.it> <qmkFs-6UJ-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thursday 22 October 2015 11:41:58 Eric Auger wrote: > v2: creation > - this defines the module_vfio_reset_handler macro as suggested by Arnd > > Although Arnd suggested me to remove the vfio_platform_register_reset > symbol_get (since the module manager can handle the case where the > vfio-platform driver is not loaded), I prefered to keep it while > introducing the macro. The rationale is, when using symbol_get/put > we are able to release the hold from the reset module on vfio-platform > as soon as the registration is complete and I think this makes sense. This makes it highly unusual. I can't think of a good reason to allow unloading the vfio platform module while a reset module is registered, that just causes a memory leak (or possibly a crash) when you do unload the core module while it's used by a reset driver, it prevents the reset module from getting loaded without loading the vfio module first (because the autoloading doesn't work), and it means we don't catch build errors in invalid configurations where you have only the reset driver but not the vfio driver enabled. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 2/6] vfio: platform: reset: add vfio_platform_reset_private.h Eric Auger <eric.auger@linaro.org> - 2015-10-22 11:50 +0200 Re: [PATCH v2 2/6] vfio: platform: reset: add vfio_platform_reset_private.h Arnd Bergmann <arnd@arndb.de> - 2015-10-22 12:20 +0200
csiph-web