Displaying 6 results from an estimated 6 matches for "warning_tim".
Did you mean:
warning_time
2015 Mar 09
2
[PATCH] 9p/trans_virtio: fix hot-unplug
...1 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)
static void p9_virtio_remove(struct virtio_device *vdev)
{
struct virtio_chan *chan = vdev->priv;
-
- if (chan->inuse)
- p9_virtio_close(chan->client);
- vdev->config->del_vqs(vdev);
+ unsigned long warning_time;
+ bool inuse;
mutex_lock(&virtio_9p_lock);
+
+ /* Remove self from list so we don't get new users. */
list_del(&chan->chan_list);
+ warning_time = jiffies;
+
+ /* Wait for existing users to close. */
+ while (chan->inuse) {
+ mutex_unlock(&virtio_9p_lock);
+ msleep(2...
2015 Mar 09
2
[PATCH] 9p/trans_virtio: fix hot-unplug
...1 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)
static void p9_virtio_remove(struct virtio_device *vdev)
{
struct virtio_chan *chan = vdev->priv;
-
- if (chan->inuse)
- p9_virtio_close(chan->client);
- vdev->config->del_vqs(vdev);
+ unsigned long warning_time;
+ bool inuse;
mutex_lock(&virtio_9p_lock);
+
+ /* Remove self from list so we don't get new users. */
list_del(&chan->chan_list);
+ warning_time = jiffies;
+
+ /* Wait for existing users to close. */
+ while (chan->inuse) {
+ mutex_unlock(&virtio_9p_lock);
+ msleep(2...
2015 Mar 12
1
[PATCH] 9p/trans_virtio: fix hot-unplug
...> > static void p9_virtio_remove(struct virtio_device *vdev)
> > {
> > struct virtio_chan *chan = vdev->priv;
> > -
> > - if (chan->inuse)
> > - p9_virtio_close(chan->client);
> > - vdev->config->del_vqs(vdev);
> > + unsigned long warning_time;
> > + bool inuse;
> >
> > mutex_lock(&virtio_9p_lock);
> > +
> > + /* Remove self from list so we don't get new users. */
> > list_del(&chan->chan_list);
> > + warning_time = jiffies;
> > +
> > + /* Wait for existing users...
2015 Mar 12
1
[PATCH] 9p/trans_virtio: fix hot-unplug
...> > static void p9_virtio_remove(struct virtio_device *vdev)
> > {
> > struct virtio_chan *chan = vdev->priv;
> > -
> > - if (chan->inuse)
> > - p9_virtio_close(chan->client);
> > - vdev->config->del_vqs(vdev);
> > + unsigned long warning_time;
> > + bool inuse;
> >
> > mutex_lock(&virtio_9p_lock);
> > +
> > + /* Remove self from list so we don't get new users. */
> > list_del(&chan->chan_list);
> > + warning_time = jiffies;
> > +
> > + /* Wait for existing users...
2015 Mar 12
0
[PATCH] 9p/trans_virtio: fix hot-unplug
...client, const char *devname, char *args)
> static void p9_virtio_remove(struct virtio_device *vdev)
> {
> struct virtio_chan *chan = vdev->priv;
> -
> - if (chan->inuse)
> - p9_virtio_close(chan->client);
> - vdev->config->del_vqs(vdev);
> + unsigned long warning_time;
> + bool inuse;
>
> mutex_lock(&virtio_9p_lock);
> +
> + /* Remove self from list so we don't get new users. */
> list_del(&chan->chan_list);
> + warning_time = jiffies;
> +
> + /* Wait for existing users to close. */
> + while (chan->inuse) {...
2015 Mar 12
0
[PATCH] 9p/trans_virtio: fix hot-unplug
...client, const char *devname, char *args)
> static void p9_virtio_remove(struct virtio_device *vdev)
> {
> struct virtio_chan *chan = vdev->priv;
> -
> - if (chan->inuse)
> - p9_virtio_close(chan->client);
> - vdev->config->del_vqs(vdev);
> + unsigned long warning_time;
> + bool inuse;
>
> mutex_lock(&virtio_9p_lock);
> +
> + /* Remove self from list so we don't get new users. */
> list_del(&chan->chan_list);
> + warning_time = jiffies;
> +
> + /* Wait for existing users to close. */
> + while (chan->inuse) {...