From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, Hans Verkuil <hans.verkuil@cisco.com>
Subject: Re: [PATCHv2 3/6] uvc gadget: switch to v4l2 core locking
Date: Tue, 17 Feb 2015 22:51:02 +0200 [thread overview]
Message-ID: <1478373.Z0MeTcWs1H@avalon> (raw)
In-Reply-To: <1424162649-17249-4-git-send-email-hverkuil@xs4all.nl>
Hi Hans,
Thank you for the patch.
On Tuesday 17 February 2015 09:44:06 Hans Verkuil wrote:
> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> Switch this driver over to the V4L2 core locking mechanism in preparation
> for switching to unlocked_ioctl. Suggested by Laurent Pinchart.
>
> This patch introduces a new mutex at the struct uvc_video level and
> drops the old mutex at the queue level. The new lock is now used for all
> ioctl locking and in the release file operation (the driver always has
> to take care of locking in file operations, the core only serializes
> ioctls).
The patch also drops locking in the mmap and get_unmapped_area functions,
shouldn't you mention it in the commit message ? Or possibly split that change
to a separate patch, as that's a bugfix by itself (taking the queue lock there
creates a possible AB-BA deadlock).
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> drivers/usb/gadget/function/f_uvc.c | 2 +
> drivers/usb/gadget/function/uvc.h | 1 +
> drivers/usb/gadget/function/uvc_queue.c | 79 +++++-------------------------
> drivers/usb/gadget/function/uvc_queue.h | 4 +-
> drivers/usb/gadget/function/uvc_v4l2.c | 3 +-
> drivers/usb/gadget/function/uvc_video.c | 3 +-
> 6 files changed, 22 insertions(+), 70 deletions(-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2015-02-17 20:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 8:44 [PATCHv2 0/6] Remove .ioctl from v4l2_file_operations Hans Verkuil
2015-02-17 8:44 ` [PATCHv2 1/6] pvrusb2: replace .ioctl by .unlocked_ioctl Hans Verkuil
2015-02-17 8:44 ` [PATCHv2 2/6] radio-bcm2048: use unlocked_ioctl instead of ioctl Hans Verkuil
2015-02-17 8:44 ` [PATCHv2 3/6] uvc gadget: switch to v4l2 core locking Hans Verkuil
2015-02-17 20:51 ` Laurent Pinchart [this message]
2015-02-17 8:44 ` [PATCHv2 4/6] uvc gadget: switch to unlocked_ioctl Hans Verkuil
2015-02-17 20:51 ` Laurent Pinchart
2015-02-17 8:44 ` [PATCHv2 5/6] uvc gadget: set device_caps in querycap Hans Verkuil
2015-02-17 8:44 ` [PATCHv2 6/6] v4l2-core: remove the old .ioctl BKL replacement Hans Verkuil
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=1478373.Z0MeTcWs1H@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=hans.verkuil@cisco.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.