Re: blkdev_issue_discard() hangs forever if the underlying storagedevice is removed

From: Bart Van Assche
Date: Tue Sep 27 2011 - 13:57:41 EST


On Tue, Aug 30, 2011 at 4:01 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> The underlying block device driver is supposed to handle timing out
> of lost IOs and causing them to be completed with an error.
> blkdev_issue_discard() is simply waiting for that error to be
> delivered.

Hi Dave,

You're probably right that it's not a block layer issue. This patch
fixed it for me: http://marc.info/?l=linux-scsi&m=131680195721932&w=2

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/