The attached two patches enable SCSI sense data to be available in the
bio-end_io path and use it in dm-mpath's hwhandler as well as dm-emc.c.
This allows the EMC module to take different action according to what sort of
I/O failure has occurred.
[From Jens Axboe & Lars Marowsky-Bree, Suse]
Created attachment 112959 [details]
Bio end_io patch
Created attachment 112961 [details]
hardware-handler sense data patch
Created attachment 113395 [details]
Make sense buffer available in SCSI request struct [already upstream]
Pre-requisite to having the sense data available in the bio
Created attachment 113396 [details]
Updated bio-end_io-sense patch
This obsoletes the first patch, but I can't set that flag ;)
s->valid didn't imply what Jens thought, and the struct request_sense is
generally not the right one to use here. This corrects parsing the sense buffer
and setting it in the bio, also sets bi_error correctly if no sense data is
available (by setting it to the errno).
The hardware handler patch is still correct.
2 patches added to 2.6.12-rc2-udm1
Superceded by request-based multipath.