<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/scsi/device_handler, branch v3.16</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/scsi/device_handler?h=v3.16</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/scsi/device_handler?h=v3.16'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2014-06-06T13:57:37Z</updated>
<entry>
<title>block: add blk_rq_set_block_pc()</title>
<updated>2014-06-06T13:57:37Z</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@fb.com</email>
</author>
<published>2014-06-06T13:57:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f27b087b81b70513b8c61ec20596c868f7b93474'/>
<id>urn:sha1:f27b087b81b70513b8c61ec20596c868f7b93474</id>
<content type='text'>
With the optimizations around not clearing the full request at alloc
time, we are leaving some of the needed init for REQ_TYPE_BLOCK_PC
up to the user allocating the request.

Add a blk_rq_set_block_pc() that sets the command type to
REQ_TYPE_BLOCK_PC, and properly initializes the members associated
with this type of request. Update callers to use this function instead
of manipulating rq-&gt;cmd_type directly.

Includes fixes from Christoph Hellwig &lt;hch@lst.de&gt; for my half-assed
attempt.

Signed-off-by: Jens Axboe &lt;axboe@fb.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_alua: ALUA handler attach should succeed while TPG is transitioning</title>
<updated>2013-10-25T10:19:33Z</updated>
<author>
<name>Stewart, Sean</name>
<email>Sean.Stewart@netapp.com</email>
</author>
<published>2013-10-15T15:52:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a8e5a2d593cbfccf530c3382c2c328d2edaa7b66'/>
<id>urn:sha1:a8e5a2d593cbfccf530c3382c2c328d2edaa7b66</id>
<content type='text'>
During testing, it was discovered that when a device tries to attach to the
alua handler while in TPG state of transitioning, the alua_rtpg function will
wait for it to exit the state before allowing it to continue. As a result, if
the 60 second timeout expires, the alua handler will not attach to the device.

To fix this, I have introduced an input argument to alua_rtpg called
wait_for_transition.  The idea is that it will wait for the transition to
complete before an activation (because the current TPG state has some bearing
in that case), but during a discovery if it is transitioning, it will not
wait, and will store the state as standby for the time being.

I believe the precedent exists for this from commit
c0d289b3e59577532c45ee9110ef81bd7b341272 Since if the device reports a state
of transitioning, it can transition to other more valid states, and it has
been established TPGS is supported on the device, if it is attaching.

Signed-off-by: Sean Stewart &lt;Sean.Stewart@netapp.com&gt;
Acked-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_alua: ALUA check sense should retry device internal reset unit attention</title>
<updated>2013-10-25T10:14:18Z</updated>
<author>
<name>Stewart, Sean</name>
<email>Sean.Stewart@netapp.com</email>
</author>
<published>2013-10-15T15:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c20ee7b56e0a1937b41919813e5a98373ca48ae8'/>
<id>urn:sha1:c20ee7b56e0a1937b41919813e5a98373ca48ae8</id>
<content type='text'>
When the scsi_dh_alua handler issues an RTPG during initialization, if it gets
0x06/0x29/0x04 as the sense, it will fail to attach the handler.  NetApp
E-Series returns 0x29/0x00 for power on, and 0x29/0x04 for conditions that
cause the controller to reboot again.  These conditions should be treated
identically within the handler.

Signed-off-by: Sean Stewart &lt;Sean.Stewart@netapp.com&gt;
Acked-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_rdac: Add new IBM 1813 product id to rdac devlist</title>
<updated>2013-10-25T08:57:55Z</updated>
<author>
<name>Stewart, Sean</name>
<email>Sean.Stewart@netapp.com</email>
</author>
<published>2013-09-11T22:54:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4df01b06ae4afdb233cc099051305d094f02e793'/>
<id>urn:sha1:4df01b06ae4afdb233cc099051305d094f02e793</id>
<content type='text'>
Signed-off-by: Sean Stewart &lt;Sean.Stewart@netapp.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG</title>
<updated>2013-04-11T23:00:31Z</updated>
<author>
<name>Stewart, Sean</name>
<email>Sean.Stewart@netapp.com</email>
</author>
<published>2013-04-04T14:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7a3ad3920de780e3da1dacabe3c0abcd5b260655'/>
<id>urn:sha1:7a3ad3920de780e3da1dacabe3c0abcd5b260655</id>
<content type='text'>
Resending with requested rewording of the parameter description.  Currently
ALUA device handler sends STPG command during failover and failback.  Failover
can be optimized by implicit failover (by not to sending STPG command), when 1
is passed as hwhandler parameter in multipath.conf. ex "2 alua 1". We may need
to pass the parameter through module param for alua device handler to optimize
failover if incase retain_attached_hwhandler set in multipath.conf and
hwhandler is set with non-tpgs device handler ex: '1 rdac'.

[jejb: fix up whitespace and other issues]
Signed-off-by: Vijay Chauhan &lt;vijay.chauhan@netapp.com&gt;
Signed-off-by: Sean Stewart &lt;Sean.Stewart@netapp.com&gt;
Acked-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_alua: fix stpg sense handling</title>
<updated>2013-04-10T03:55:21Z</updated>
<author>
<name>Mike Christie</name>
<email>michaelc@cs.wisc.edu</email>
</author>
<published>2013-03-06T04:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=27db682bf07fdc105af38827dbbd67d6f0a4ae04'/>
<id>urn:sha1:27db682bf07fdc105af38827dbbd67d6f0a4ae04</id>
<content type='text'>
For the stpg_endio path we are not evaluating the sense. The bug
is that

1. The error value is set to -EIO when there is sense, so we hit the first
error check and always return SCSI_DH_IO.

2. h-&gt;senselen is set to zero in submit_stpg. It is not later set to
req-&gt;sense_len like in the synchrounous exection paths, so we must
check the req-&gt;sense_len field.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>drivers/scsi/device_handler: remove depends on CONFIG_EXPERIMENTAL</title>
<updated>2013-01-21T22:52:45Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2013-01-17T02:53:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2a570a4917cca818bc69d0789483e0a9ace79477'/>
<id>urn:sha1:2a570a4917cca818bc69d0789483e0a9ace79477</id>
<content type='text'>
The CONFIG_EXPERIMENTAL config item has not carried much meaning for a
while now and is almost always enabled by default. As agreed during the
Linux kernel summit, remove it from any "depends on" lines in Kconfigs.

CC: "James E.J. Bottomley" &lt;JBottomley@parallels.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_alua: Enable STPG for unavailable ports</title>
<updated>2012-09-24T08:21:56Z</updated>
<author>
<name>Bart Van Assche</name>
<email>bvanassche@acm.org</email>
</author>
<published>2012-08-24T09:08:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e47f8976d8e573928824a06748f7bc82c58d747f'/>
<id>urn:sha1:e47f8976d8e573928824a06748f7bc82c58d747f</id>
<content type='text'>
A quote from SPC-4: "While in the unavailable primary target port
asymmetric access state, the device server shall support those of
the following commands that it supports while in the active/optimized
state: [ ... ] d) SET TARGET PORT GROUPS; [ ... ]". Hence enable
sending STPG to a target port group that is in the unavailable state.

Signed-off-by: Bart Van Assche &lt;bvanassche@acm.org&gt;
Reviewed-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Acked-by: Hannes Reinecke &lt;hare@suse.de&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_rdac : minor return fix for rdac</title>
<updated>2012-09-24T08:11:03Z</updated>
<author>
<name>Moger, Babu</name>
<email>Babu.Moger@netapp.com</email>
</author>
<published>2012-09-04T17:13:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1315da30daaf8f4b1207cc78b67ff0dc55bc447b'/>
<id>urn:sha1:1315da30daaf8f4b1207cc78b67ff0dc55bc447b</id>
<content type='text'>
Signed-off-by: Babu Moger &lt;babu.moger@netapp.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi_dh_rdac : Consolidate rdac strings together</title>
<updated>2012-09-24T08:11:03Z</updated>
<author>
<name>Moger, Babu</name>
<email>Babu.Moger@netapp.com</email>
</author>
<published>2012-09-04T17:05:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=35204772ea034b380bc9d8942699dc03898e5c13'/>
<id>urn:sha1:35204772ea034b380bc9d8942699dc03898e5c13</id>
<content type='text'>
This patch consolidates the strings together. Purpose is to remove minor product strings extensions.
That way the future products with similar strings should not require change  here.

Signed-off-by: Babu Moger &lt;babu.moger@netapp.com&gt;
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
</feed>
