<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/block/scsi_ioctl.c, branch linux-2.6.35.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.35.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.35.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-12-14T22:40:00Z</updated>
<entry>
<title>block: take care not to overflow when calculating total iov length</title>
<updated>2010-12-14T22:40:00Z</updated>
<author>
<name>Jens Axboe</name>
</author>
<published>2010-10-29T17:31:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=116ad352e4fefafd5d6abc819691e61603604bee'/>
<id>urn:sha1:116ad352e4fefafd5d6abc819691e61603604bee</id>
<content type='text'>
commit 9f864c80913467312c7b8690e41fb5ebd1b50e92 upstream.

Reported-by: Dan Rosenberg &lt;drosenberg@vsecurity.com&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Andi Kleen &lt;ak@linux.intel.com&gt;

</content>
</entry>
<entry>
<title>block/scsi_ioctl.c: quiet sparse noise</title>
<updated>2009-11-04T08:10:33Z</updated>
<author>
<name>H Hartley Sweeten</name>
</author>
<published>2009-11-04T08:10:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=476d42f138ba82389a92a894d8a630a70d36278f'/>
<id>urn:sha1:476d42f138ba82389a92a894d8a630a70d36278f</id>
<content type='text'>
Quiet sparse noise about symbol's not being declared.

Symbol blk_default_cmd_filter is only used locally and should be static.

The function blk_scsi_ioctl_init() is a fs_initcall and should also be
static.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: call blk_scsi_ioctl_init()</title>
<updated>2009-07-10T18:31:53Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-07-09T07:48:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=76da03467a1a78811777561bbb1fa56175ee4778'/>
<id>urn:sha1:76da03467a1a78811777561bbb1fa56175ee4778</id>
<content type='text'>
Currently, blk_scsi_ioctl_init() is not called since it lacks
an initcall marking. This causes the command table to be
unitialized, hence somce commands are block when they should
not have been.

This fixes a regression introduced by commit
018e0446890661504783f92388ecce7138c1566d

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: get rid of queue-private command filter</title>
<updated>2009-07-01T08:56:26Z</updated>
<author>
<name>Jens Axboe</name>
</author>
<published>2009-06-26T14:27:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=018e0446890661504783f92388ecce7138c1566d'/>
<id>urn:sha1:018e0446890661504783f92388ecce7138c1566d</id>
<content type='text'>
The initial patches to support this through sysfs export were broken
and have been if 0'ed out in any release. So lets just kill the code
and reclaim some space in struct request_queue, if anyone would later
like to fixup the sysfs bits, the git history can easily restore
the removed bits.

Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: Use accessor functions for queue limits</title>
<updated>2009-05-22T21:22:54Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2009-05-22T21:17:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae03bf639a5027d27270123f5f6e3ee6a412781d'/>
<id>urn:sha1:ae03bf639a5027d27270123f5f6e3ee6a412781d</id>
<content type='text'>
Convert all external users of queue limits to using wrapper functions
instead of poking the request queue variables directly.

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: add rq-&gt;resid_len</title>
<updated>2009-05-11T07:50:53Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2009-05-07T13:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3a4d78c580de4edc9ef0f7c59812fb02ceb037f'/>
<id>urn:sha1:c3a4d78c580de4edc9ef0f7c59812fb02ceb037f</id>
<content type='text'>
rq-&gt;data_len served two purposes - the length of data buffer on issue
and the residual count on completion.  This duality creates some
headaches.

First of all, block layer and low level drivers can't really determine
what rq-&gt;data_len contains while a request is executing.  It could be
the total request length or it coulde be anything else one of the
lower layers is using to keep track of residual count.  This
complicates things because blk_rq_bytes() and thus
[__]blk_end_request_all() relies on rq-&gt;data_len for PC commands.
Drivers which want to report residual count should first cache the
total request length, update rq-&gt;data_len and then complete the
request with the cached data length.

Secondly, it makes requests default to reporting full residual count,
ie. reporting that no data transfer occurred.  The residual count is
an exception not the norm; however, the driver should clear
rq-&gt;data_len to zero to signify the normal cases while leaving it
alone means no data transfer occurred at all.  This reverse default
behavior complicates code unnecessarily and renders block PC on some
drivers (ide-tape/floppy) unuseable.

This patch adds rq-&gt;resid_len which is used only for residual count.

While at it, remove now unnecessasry blk_rq_bytes() caching in
ide_pc_intr() as rq-&gt;data_len is not changed anymore.

Boaz	: spotted missing conversion in osd
Sergei	: spotted too early conversion to blk_rq_bytes() in ide-tape

[ Impact: cleanup residual count handling, report 0 resid by default ]

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
Cc: Bartlomiej Zolnierkiewicz &lt;bzolnier@gmail.com&gt;
Cc: Borislav Petkov &lt;petkovbb@googlemail.com&gt;
Cc: Sergei Shtylyov &lt;sshtylyov@ru.mvista.com&gt;
Cc: Mike Miller &lt;mike.miller@hp.com&gt;
Cc: Eric Moore &lt;Eric.Moore@lsi.com&gt;
Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Cc: Doug Gilbert &lt;dgilbert@interlog.com&gt;
Cc: Mike Miller &lt;mike.miller@hp.com&gt;
Cc: Eric Moore &lt;Eric.Moore@lsi.com&gt;
Cc: Darrick J. Wong &lt;djwong@us.ibm.com&gt;
Cc: Pete Zaitcev &lt;zaitcev@redhat.com&gt;
Cc: Boaz Harrosh &lt;bharrosh@panasas.com&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: don't init rq fields unnecessarily</title>
<updated>2009-04-28T06:14:50Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2009-04-28T04:06:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c94dece1baf320d925cedb231489c4e0358ac5a'/>
<id>urn:sha1:4c94dece1baf320d925cedb231489c4e0358ac5a</id>
<content type='text'>
blk_get_request() always returns properly zeroed requests.  Don't set
fields to zero/NULL unnecessarily.

[ Impact: cleanup ]

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: kill rq-&gt;data</title>
<updated>2009-04-28T05:37:36Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2009-04-23T02:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=731ec497e5888c6792ad62613ae9be97eebcd7ca'/>
<id>urn:sha1:731ec497e5888c6792ad62613ae9be97eebcd7ca</id>
<content type='text'>
Now that all block request data transfer is done via bio, rq-&gt;data
isn't used.  Kill it.

While at it, make the roles of rq-&gt;special and buffer clear.

[ Impact: drop now unncessary field from struct request ]

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Boaz Harrosh &lt;bharrosh@panasas.com&gt;
</content>
</entry>
<entry>
<title>block: fix SG_IO vector request data length handling</title>
<updated>2009-04-22T06:35:09Z</updated>
<author>
<name>Tejun Heo</name>
</author>
<published>2009-04-15T13:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25636e282fe95508cae96bb27f86407aef935817'/>
<id>urn:sha1:25636e282fe95508cae96bb27f86407aef935817</id>
<content type='text'>
Impact: fix SG_IO behavior such that it matches the documentation

SG_IO howto says that if -&gt;dxfer_len and sum of iovec disagress, the
shorter one wins.  However, the current implementation returns -EINVAL
for such cases.  Trim iovc if it's longer than -&gt;dxfer_len.

This patch uses iov_*() helpers which take struct iovec * by casting
struct sg_iovec * to it.  sg_iovec is always identical to iovec and
this will be further cleaned up with later patches.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
<entry>
<title>block: fix SG_IO to return a proper error value</title>
<updated>2009-04-15T10:10:11Z</updated>
<author>
<name>FUJITA Tomonori</name>
</author>
<published>2009-04-13T18:03:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=91e463c8f5f7a5b09d3d034c01a88567af60c504'/>
<id>urn:sha1:91e463c8f5f7a5b09d3d034c01a88567af60c504</id>
<content type='text'>
blk_rq_unmap_user() returns -EFAULT if a program passes an invalid
address to kernel. SG_IO path needs to pass the returned value to user
space instead of ignoring it.

Signed-off-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
</entry>
</feed>
