[dm-devel] [PATCH] dm linear: disable WRITE SAME if it fails

Alasdair G Kergon agk at redhat.com
Sat May 31 15:05:17 UTC 2014

On Sat, May 31, 2014 at 04:51:30PM +0800, alex chen wrote:
> The original commit f84cb8a46a771f36a04a02c61ea635c968ed5f6a("dm mpath:
> disable WRITE SAME if it fails") disables WRITE SAME in the DM multipath
> device if it fails, but when the DM linear device stacks ontop of the
> multipath device it doesn't help.
> this patch adds DM linear end_io method to catch WRITE SAME errors and
> disables WRITE SAME in the DM linear device's queue_limits if an
> underlying device disables it.

How does your patch address striped targets?
Shouldn't this code be taken out of mpath and moved to dm.c and applied to all
targets (both bio and rq-based, at least where WRITE SAME is supported)?


More information about the dm-devel mailing list