mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Failing a bio right
@ 2012-01-19 16:04 Tomer Margalit
  2012-01-20 14:01 ` Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Tomer Margalit @ 2012-01-19 16:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: Nezer Zaidenberg, tomer Margalit

Hi All,

I have a make_request function that blocks writes (by using
wait_event_interruptible on some event).
I want the user to be able to stop the function if it takes too long
(that's the reason for the interruptible version).
So when the call is interrupted I call bio_endio with the EINTR error
to signal the interruption.
Usually this works fine, but after a lot of writes, the system says
"lost page write due to I/O error on device".
At this point the process hangs.

Is this the right way to do what I'm trying to do?

Thanks,
   Tomer

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-28 15:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-19 16:04 Failing a bio right Tomer Margalit
2012-01-20 14:01 ` Jan Kara
2012-01-22  9:29   ` Tomer Margalit
2012-01-23 20:14     ` Jan Kara
2012-02-28 14:34       ` Tomer Margalit
2012-02-28 14:56         ` Jan Kara
2012-02-28 15:22           ` Tomer Margalit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®