[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [v1 PATCH 1/3]: Move the paio_signal_handler to a gener
From: |
Arun R Bharadwaj |
Subject: |
[Qemu-devel] Re: [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location. |
Date: |
Tue, 15 Mar 2011 20:57:38 +0530 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
* Stefan Hajnoczi <address@hidden> [2011-03-15 11:38:03]:
> On Tue, Mar 15, 2011 at 10:36 AM, Arun R Bharadwaj
> <address@hidden> wrote:
> > * Arun R Bharadwaj <address@hidden> [2011-03-15 16:04:53]:
> >
> > Author: Arun R Bharadwaj <address@hidden>
> > Date: Thu Mar 10 14:45:25 2011 +0530
> >
> > Move the paio_signal_handler to a generic location.
> >
> > The paio subsystem uses the signal, SIGUSR2. So move
> > the signal handler to a more generic place such that
> > other subsystems like 9pfs can also use it.
> >
> > TODO: I have moved the signal handler code to
> > qemu-thread.c, which is NOT the right place. I need
> > suggestions as to where is the right place to put it.
>
> I think os-posix.c would be appropriate. Please check how this
> affects Windows host and linux-user builds.
>
Anthony's reply negates this point. I will remove the signalling code
and also check the behaviour of Windows host and linux-user builds.
> > @@ -356,6 +359,15 @@ static void *aio_thread(void *unused)
> > idle_threads++;
> > mutex_unlock(&lock);
> >
> > + if (posix_aio_state) {
>
> If we get here posix_aio_state must be non-NULL. Please remove the check.
>
Yes, will remove this.
> > +void sigusr2_signal_handler(int signum)
>
> static void sigusr2_signal_handler(int signum)
>
Thanks for noticing this.
> Stefan
- [Qemu-devel] [v1 PATCH 0/3]: Use GLib threadpool in 9pfs., Arun R Bharadwaj, 2011/03/15
- [Qemu-devel] [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location., Arun R Bharadwaj, 2011/03/15
- [Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Arun R Bharadwaj, 2011/03/15
- Re: [Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Harsh Bora, 2011/03/15
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Anthony Liguori, 2011/03/15
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Arun R Bharadwaj, 2011/03/15
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Stefan Hajnoczi, 2011/03/16
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Anthony Liguori, 2011/03/16
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Venkateswararao Jujjuri (JV), 2011/03/16
- [Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs., Stefan Hajnoczi, 2011/03/16
[Qemu-devel] [v1 PATCH 3/3]: Convert v9fs_stat to threaded model., Arun R Bharadwaj, 2011/03/15