• Dave Chinner's avatar
    xfs: remove xfs_cancel_ioend · 150d5be0
    Dave Chinner authored
    We currently have code to cancel ioends being built because we
    change bufferhead state as we build the ioend. On error, this needs
    to be unwound and so we have cancelling code that walks the buffers
    on the ioend chain and undoes these state changes.
    
    However, the IO submission path already handles state changes for
    buffers when a submission error occurs, so we don't really need a
    separate cancel function to do this - we can simply submit the
    ioend chain with the specific error and it will be cancelled rather
    than submitted.
    
    Hence we can remove the explicit cancel code and just rely on
    submission to deal with the error correctly.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    150d5be0
xfs_aops.c 54.3 KB