On 04/09, David Woodhouse wrote:Yes sure. Why do you think so? Please look at the "patch" below, --- arch/x86/kernel/signal_32.c 2008-02-15 16:58:38.000000000 +0300 +++ - 2008-04-09 15:16:05.393510662 +0400 @@ -526,10 +526,14 @@ handle_signal(unsigned long sig, siginfo { int ret; + oldset = ¤t->blocked; + /* Are we from a system call? */ if (regs->orig_ax >= 0) { /* If so, check system call restarting.. */ switch (regs->ax) { + case -ERESTART_XXX: + oldset = ¤t->saved_sigmask; case -ERESTART_RESTARTBLOCK: case -ERESTARTNOHAND: regs->ax = -EINTR; We also need a similar change in do_signal(). Now, --- fs/select.c 2008-02-15 16:59:15.000000000 +0300 +++ - 2008-04-09 15:19:29.015991911 +0400 @@ -805,9 +805,8 @@ asmlinkage long sys_ppoll(struct pollfd if (sigmask) { memcpy(¤t->saved_sigmask, &sigsaved, sizeof(sigsaved)); - set_thread_flag(TIF_RESTORE_SIGMASK); } - ret = -ERESTARTNOHAND; + ret = -ERESTART_XXX; } else if (sigmask) sigprocmask(SIG_SETMASK, &sigsaved, NULL); Perhaps I missed something else, though. Not that I really think it worth changing, but I'll try to make a proof of concept patch on Weekend, on top of Roland's cleanups. As I see it, the main disadvantage of ERESTART_ approach is that we need 2 new ERESTART_ codes, one for ERESTARTNOHAND, another for ERESTART_RESTARTBLOCK. And yes, while I personally think this is "more clean", it is very subjective. Oleg. --
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Nick Piggin | [patch] my mmu notifier sample driver |
| Sean | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
| Arjan van de Ven | [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
