login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
25
Re: [PATCH 5/5] Make wait_on_retry_sync_kiocb killable
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Nick Piggin <nickpiggin@...>
To: Matthew Wilcox <matthew@...>
Cc: <linux-kernel@...>
Subject:
Re: [PATCH 5/5] Make wait_on_retry_sync_kiocb killable
Date: Wednesday, October 24, 2007 - 11:53 pm
On Friday 19 October 2007 08:26, Matthew Wilcox wrote:
quoted text
> Use TASK_KILLABLE to allow wait_on_retry_sync_kiocb to return -EINTR. > All callers then check the return value and break out of their loops. > > Signed-off-by: Matthew Wilcox <matthew@wil.cx> > --- > fs/read_write.c | 17 ++++++++++++----- > 1 files changed, 12 insertions(+), 5 deletions(-) > > diff --git a/fs/read_write.c b/fs/read_write.c > index 124693e..3196a3b 100644 > --- a/fs/read_write.c > +++ b/fs/read_write.c > @@ -218,14 +218,15 @@ Einval: > return -EINVAL; > } > > -static void wait_on_retry_sync_kiocb(struct kiocb *iocb) > +static int wait_on_retry_sync_kiocb(struct kiocb *iocb) > { > - set_current_state(TASK_UNINTERRUPTIBLE); > + set_current_state(TASK_KILLABLE); > if (!kiocbIsKicked(iocb)) > schedule(); > else > kiocbClearKicked(iocb); > __set_current_state(TASK_RUNNING); > + return fatal_signal_pending(current) ? -EINTR : 0;
Although the EINTR never gets to userspace anyway, is there a good reason why the last patch for do_generic_mapping_read doesn't pass back -EINTR? -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/5] TASK_KILLABLE
, Matthew Wilcox
, (Thu Oct 18, 6:25 pm)
Re: [PATCH 0/5] TASK_KILLABLE
, Nick Piggin
, (Wed Oct 24, 11:55 pm)
[PATCH 2/5] Use macros instead of TASK_ flags
, Matthew Wilcox
, (Thu Oct 18, 6:25 pm)
Re: [PATCH 2/5] Use macros instead of TASK_ flags
, Nick Piggin
, (Wed Oct 24, 11:50 pm)
[PATCH 3/5] Add TASK_WAKEKILL
, Matthew Wilcox
, (Thu Oct 18, 6:26 pm)
[PATCH 4/5] Add lock_page_killable
, Matthew Wilcox
, (Thu Oct 18, 6:26 pm)
[PATCH 5/5] Make wait_on_retry_sync_kiocb killable
, Matthew Wilcox
, (Thu Oct 18, 6:26 pm)
Re: [PATCH 5/5] Make wait_on_retry_sync_kiocb killable
, Nick Piggin
, (Wed Oct 24, 11:53 pm)
[PATCH 1/5] Use wake_up_locked() in eventpoll
, Matthew Wilcox
, (Thu Oct 18, 6:25 pm)
Re: [PATCH 1/5] Use wake_up_locked() in eventpoll
, Arjan van de Ven
, (Thu Oct 18, 11:56 pm)
Re: [PATCH 1/5] Use wake_up_locked() in eventpoll
, Matthew Wilcox
, (Fri Oct 19, 12:28 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Trent Piepho
[PATCH] [POWERPC] Improve (in|out)_beXX() asm code
Andi Kleen
[PATCH] [4/50] x86: add cpu codenames for Kconfig.cpu
Andi Kleen
[PATCH] [0/45] x86 2.6.24 patches review I
Stoyan Gaydarov
From 2.4 to 2.6 to 2.7?
git
:
linux-netdev
:
Jarek Poplawski
Re: HTB accuracy for high speed
David Miller
Re: [GIT]: Networking
Gerrit Renker
[PATCH 13/37] dccp: Deprecate Ack Ratio sysctl
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
1035 guests
online.
Online users
tariqalleynepcv
sellingonlineu
ewen32hollr
aspdotnetcompr
tom0009
trafficexchang
howtomakemoney
mensjacketscoa
childrenstease
greatgolfgwlld
osoleanijdpdl
Syndicate