diff options
author | Dave Chinner <[email protected]> | 2012-04-23 15:58:46 +1000 |
---|---|---|
committer | Ben Myers <[email protected]> | 2012-05-14 16:20:42 -0500 |
commit | 0e95f19ad983e72a9cb93a67b3290b58f0467b36 (patch) | |
tree | 2b3117e20f1e739d5cb560b1b1b32f3fdc8e3ee5 /lib/dynamic_debug.c | |
parent | fe2429b0966a7ec42b5fe3bf96f0f10de0a3b536 (diff) |
xfs: check for buffer errors before waiting
If we call xfs_buf_iowait() on a buffer that failed dispatch due to
an IO error, it will wait forever for an Io that does not exist.
This is hndled in xfs_buf_read, but there is other code that calls
xfs_buf_iowait directly that doesn't.
Rather than make the call sites have to handle checking for dispatch
errors and then checking for completion errors, make
xfs_buf_iowait() check for dispatch errors on the buffer before
waiting. This means we handle both dispatch and completion errors
with one set of error handling at the caller sites.
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Mark Tinguely <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions