All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] About IO timeout and hang
@ 2020-07-20 10:52 Feng Li
  0 siblings, 0 replies; only message in thread
From: Feng Li @ 2020-07-20 10:52 UTC (permalink / raw)
  To: linux-kernel, Ming Lei, linux-block

Hi Experts,

Consider accessing a "bad" disk, if the user process submits a
'read/write' request to the kernel through libaio,
and the kernel doesn't return the IO, because the underlay disk is
bad, and IO is stuck for a long time.

When the IO is a 'read', the user-space process has its own timeout
policy, and find this IO has timeout-ed, then is it safe
to free the io buffer before IO error return?
If the user-space doesn't free the buffer and use this buffer as
another read request, for example, read from another health disk,
and if at this time the bad disk response the IO,
will the buffer be corrupted by the before 'read' request?

Could anyone help me clarify this concern?

Thanks in advance.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-20 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 10:52 [Question] About IO timeout and hang Feng Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.