[PATCH v5 1/3] dma-buf: give each buffer a full-fledged inode

2019-06-13 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

[PATCH v5 0/3] Improve the dma-buf tracking

2019-06-13 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[PATCH v5 3/3] dma-buf: add show_fdinfo handler

2019-06-13 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[PATCH v5 2/3] dma-buf: add DMA_BUF_SET_NAME ioctls

2019-06-13 Thread Chenbo Feng
igned-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 65 ++-- include/linux/dma-buf.h | 5 ++- include/uapi/linux/dma-buf.h | 3 ++ 3 files changed, 69 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c

Re: [PATCH v4 2/3] dma-buf: add DMA_BUF_SET_NAME ioctls

2019-06-13 Thread Chenbo Feng
On Thu, Jun 13, 2019 at 1:15 PM Suren Baghdasaryan wrote: > > On Wed, Jun 12, 2019 at 2:48 PM 'Chenbo Feng' via kernel-team > wrote: > > > > From: Greg Hackmann > > > > This patch adds complimentary DMA_BUF_SET_NAME ioctls, which lets > > us

[PATCH v4 0/3] Improve the dma-buf tracking

2019-06-13 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[PATCH v4 3/3] dma-buf: add show_fdinfo handler

2019-06-13 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[PATCH v4 1/3] dma-buf: give each buffer a full-fledged inode

2019-06-13 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

[PATCH v4 2/3] dma-buf: add DMA_BUF_SET_NAME ioctls

2019-06-13 Thread Chenbo Feng
igned-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 64 ++-- include/linux/dma-buf.h | 5 ++- include/uapi/linux/dma-buf.h | 3 ++ 3 files changed, 68 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c

Re: [RESEND PATCH v3 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-06-13 Thread Chenbo Feng
On Wed, Jun 12, 2019 at 7:43 AM Sumit Semwal wrote: > > Hello Chenbo, > > Thanks very much for your patches. Other than a couple tiny nits > below, I think these look good, and I will merge them before the end > of this week. > On Tue, 11 Jun 2019 at 05:32, Chenbo Feng wrot

[RESEND PATCH v3 1/3] dma-buf: give each buffer a full-fledged inode

2019-06-10 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

[RESEND PATCH v3 1/3] dma-buf: give each buffer a full-fledged inode

2019-06-10 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

[RESEND PATCH v3 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-06-10 Thread Chenbo Feng
ff-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 49 +--- include/linux/dma-buf.h | 5 +++- include/uapi/linux/dma-buf.h | 3 +++ 3 files changed, 53 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/driver

[RESEND PATCH v3 0/3] Improve the dma-buf tracking

2019-06-10 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[RESEND PATCH v3 3/3] dma-buf: add show_fdinfo handler

2019-06-10 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[RESEND PATCH v3 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-06-10 Thread Chenbo Feng
ff-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 49 +--- include/linux/dma-buf.h | 5 +++- include/uapi/linux/dma-buf.h | 3 +++ 3 files changed, 53 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/driver

[RESEND PATCH v3 3/3] dma-buf: add show_fdinfo handler

2019-06-10 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[RESEND PATCH v3 0/3] Improve the dma-buf tracking

2019-06-10 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[dma-buf v3 3/3] dma-buf: add show_fdinfo handler

2019-05-10 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[dma-buf v3 0/3] Improve the dma-buf tracking

2019-05-10 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[dma-buf v3 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-05-10 Thread Chenbo Feng
ff-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 49 +--- include/linux/dma-buf.h | 5 +++- include/uapi/linux/dma-buf.h | 3 +++ 3 files changed, 53 insertions(+), 4 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/driver

[dma-buf v3 1/3] dma-buf: give each buffer a full-fledged inode

2019-05-10 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

Re: [RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-26 Thread Chenbo Feng
On Sun, Mar 24, 2019 at 1:45 PM Joel Fernandes wrote: > > Hi Sandeep, > > On Sun, Mar 24, 2019 at 10:56:33AM -0700, Sandeep Patil wrote: > > On Fri, Mar 22, 2019 at 11:02:55AM -0400, Joel Fernandes wrote: > > > On Thu, Mar 21, 2019 at 07:51:33PM -0700, Chenbo Fen

[RFC v2 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-03-24 Thread Chenbo Feng
ff-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 48 ++-- include/linux/dma-buf.h | 5 +++- include/uapi/linux/dma-buf.h | 4 +++ 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/driver

[RFC v2 dma-buf 0/3] Improve the dma-buf tracking

2019-03-24 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[RFC v2 3/3] dma-buf: add show_fdinfo handler

2019-03-24 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf

[RFC v2 1/3] dma-buf: give each buffer a full-fledged inode

2019-03-24 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 63 ++ include/uapi/linux/magic.h | 1 + 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/

Re: [RFC dma-buf 0/3] Improve the dma-buf tracking

2019-03-15 Thread Chenbo Feng
On Thu, Mar 14, 2019 at 10:49 AM Sumit Semwal wrote: > > Hello Chenbo,Thank you for your RFC series. > > On Wed, 27 Feb 2019 at 09:24, Chenbo Feng wrote: > > > > Currently, all dma-bufs share the same anonymous inode. While we can count > > how many dma-buf fds

[RFC dma-buf 0/3] Improve the dma-buf tracking

2019-02-27 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count, bu

[RFC dma-buf 2/3] dma-buf: add DMA_BUF_{GET,SET}_NAME ioctls

2019-02-27 Thread Chenbo Feng
ff-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c| 42 ++-- include/linux/dma-buf.h | 5 - include/uapi/linux/dma-buf.h | 4 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/dr

[RFC dma-buf 1/3] dma-buf: give each buffer a full-fledged inode

2019-02-27 Thread Chenbo Feng
eudo-filesystem for dma-buf, following the example in fs/aio.c. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 68 +- include/uapi/linux/magic.h | 1 + 2 files changed, 61 insertions(+), 8 deletions(-) diff --git a/

[RFC dma-buf 3/3] dma-buf: add show_fdinfo handler

2019-02-27 Thread Chenbo Feng
From: Greg Hackmann The show_fdinfo handler exports the same information available through debugfs on a per-buffer basis. Signed-off-by: Greg Hackmann Signed-off-by: Chenbo Feng --- drivers/dma-buf/dma-buf.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma-buf