| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 07/18] xfs: check for buffer errors before waiting |
| From: | Mark Tinguely <tinguely@xxxxxxx> |
| Date: | Fri, 13 Apr 2012 12:56:42 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1334319061-12968-8-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1334319061-12968-1-git-send-email-david@xxxxxxxxxxxxx> <1334319061-12968-8-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120122 Thunderbird/9.0 |
On 04/13/12 07:10, Dave Chinner wrote: From: Dave Chinner<dchinner@xxxxxxxxxx> 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<dchinner@xxxxxxxxxx> Reviewed-by: Christoph Hellwig<hch@xxxxxx> --- Looks good. Reviewed-by: Mark Tinguely <tinguely@xxxxxxx> |
| Previous by Date: | Re: [PATCH 02/18] xfs: pass shutdown method into xfs_trans_ail_delete_bulk, Mark Tinguely |
|---|---|
| Next by Date: | Re: [PATCH 01/18] xfs: Ensure inode reclaim can run during quotacheck, Mark Tinguely |
| Previous by Thread: | [PATCH 07/18] xfs: check for buffer errors before waiting, Dave Chinner |
| Next by Thread: | [PATCH 14/18] xfs: kill xfs_buf_btoc, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |