[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAG3n4CS5vyx2sn9t0geQoxa+kE+Nk9Q-0fwTCU6o9iQ33bORjA@mail.gmail.com>
Date: Thu, 19 Jan 2012 18:04:19 +0200
From: Tomer Margalit <tomermargalit@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Nezer Zaidenberg <nzaidenberg@....com>,
tomer Margalit <tomermargalit@...il.com>
Subject: Failing a bio right
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists