lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ