kernel_optimize_test/drivers/dma-buf
Sumit Semwal 9abdffe286 dma-buf: add ref counting for module as exporter
Add reference counting on a kernel module that exports dma-buf and
implements its operations. This prevents the module from being unloaded
while DMABUF file is in use.

The original patch [1] was submitted by Tomasz Stanislawski, but this
is a simpler way to do it.

v3: call module_put() as late as possible, per gregkh's comment.
v2: move owner to struct dma_buf, and use DEFINE_DMA_BUF_EXPORT_INFO
    macro to simplify the change.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>

[1]: https://lkml.org/lkml/2012/8/8/163
2015-05-13 14:35:57 +05:30
..
dma-buf.c dma-buf: add ref counting for module as exporter 2015-05-13 14:35:57 +05:30
fence.c dma-buf/fence: don't wait when specified timeout is zero 2015-01-22 11:28:51 +05:30
Makefile seqno-fence: Hardware dma-buf implementation of fencing (v6) 2014-07-08 12:50:59 -07:00
reservation.c reservation: Remove shadowing local variable 'ret' 2015-01-22 16:29:31 +05:30
seqno-fence.c seqno-fence: Hardware dma-buf implementation of fencing (v6) 2014-07-08 12:50:59 -07:00