<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/block, branch v2.6.14.3</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>[PATCH] packet writing oops fix</title>
<updated>2005-11-24T22:10:07+00:00</updated>
<author>
<name>Peter Osterlund</name>
<email>petero2@telia.com</email>
</author>
<published>2005-11-14T00:06:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9761be89f5a057bf2bae57ca98990f89ad5edbe2'/>
<id>9761be89f5a057bf2bae57ca98990f89ad5edbe2</id>
<content type='text'>
There is an old bug in the pkt_count_states() function that causes stack
corruption.  When compiling with gcc 3.x or 2.x it is harmless, but gcc 4
allocates local variables differently, which makes the bug visible.

Signed-off-by: Peter Osterlund &lt;petero2@telia.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Chris Wright &lt;chrisw@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is an old bug in the pkt_count_states() function that causes stack
corruption.  When compiling with gcc 3.x or 2.x it is harmless, but gcc 4
allocates local variables differently, which makes the bug visible.

Signed-off-by: Peter Osterlund &lt;petero2@telia.com&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Chris Wright &lt;chrisw@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] Oops on suspend after on-the-fly switch to anticipatory i/o scheduler - PowerBook5, 4</title>
<updated>2005-11-11T05:18:54+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2005-11-09T18:22:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d47698c7ff2a71160e1095161e841af1ddd9fe8b'/>
<id>d47698c7ff2a71160e1095161e841af1ddd9fe8b</id>
<content type='text'>
Paul Collins wrote:
&gt;I boot with elevator=cfq (wanted to try the ionice stuff, never got
&gt;around to it).  Having decided to go back to the anticipatory
&gt;scheduler, I did the following:
&gt;
&gt;# echo anticipatory &gt; /sys/block/hda/queue/scheduler
&gt;# echo anticipatory &gt; /sys/block/hdc/queue/scheduler
&gt;
&gt;A while later I did 'sudo snooze', which produced the Oops below.
&gt;
&gt;Booting with elevator=as and then changing to cfq, sleep works fine.
&gt;But if I resume and change back to anticipatory I get a similar Oops
&gt;on the next 'sudo snooze'.
&gt;
&gt;
&gt;  Oops: kernel access of bad area, sig: 11 [#1]
&gt;  NIP: C01E1948 LR: C01D6A60 SP: EFBC5C20 REGS: efbc5b70 TRAP: 0300
&gt;Not tainted
&gt;  MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
&gt;  DAR: 00000020, DSISR: 40000000
&gt;  TASK = efb012c0[1213] 'pmud' THREAD: efbc4000
&gt;  Last syscall: 54   GPR00: 00080000 EFBC5C20 EFB012C0 EFE9E044
&gt;EFBC5CE8 00000002 00000000 C03B0000   GPR08: C046E5D8 00000000
&gt;C03B47C8 E6A58360 22042422 1001E4DC 10010000 10000000   GPR16:
&gt;10000000 10000000 10000000 7FE4EB40 10000000 10000000 10010000
&gt;C0400000   GPR24: C0380000 00000002 00000002 C046E0C0 00000000
&gt;00000002 00000000 EFBC5CE8   NIP [c01e1948] as_insert_request+0xa8/0x6b0
&gt;  LR [c01d6a60] __elv_add_request+0xa0/0x100
&gt;  Call trace:
&gt;   [c01d6a60] __elv_add_request+0xa0/0x100
&gt;   [c01ffb84] ide_do_drive_cmd+0xb4/0x190
&gt;   [c01fc1c0] generic_ide_suspend+0x80/0xa0
&gt;   [c01d4574] suspend_device+0x104/0x160
&gt;   [c01d47c0] device_suspend+0x120/0x330
&gt;   [c03f3b50] pmac_suspend_devices+0x50/0x1b0
&gt;   [c03f4294] pmu_ioctl+0x344/0x9b0
&gt;   [c0082aa4] do_ioctl+0x84/0x90
&gt;   [c0082b3c] vfs_ioctl+0x8c/0x460
&gt;   [c0082f50] sys_ioctl+0x40/0x80
&gt;   [c0004850] ret_from_syscall+0x0/0x4c

Don't clear -&gt;elevator_data on exit, if we are switching queues we are
overwriting the data of the new io scheduler.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Paul Collins wrote:
&gt;I boot with elevator=cfq (wanted to try the ionice stuff, never got
&gt;around to it).  Having decided to go back to the anticipatory
&gt;scheduler, I did the following:
&gt;
&gt;# echo anticipatory &gt; /sys/block/hda/queue/scheduler
&gt;# echo anticipatory &gt; /sys/block/hdc/queue/scheduler
&gt;
&gt;A while later I did 'sudo snooze', which produced the Oops below.
&gt;
&gt;Booting with elevator=as and then changing to cfq, sleep works fine.
&gt;But if I resume and change back to anticipatory I get a similar Oops
&gt;on the next 'sudo snooze'.
&gt;
&gt;
&gt;  Oops: kernel access of bad area, sig: 11 [#1]
&gt;  NIP: C01E1948 LR: C01D6A60 SP: EFBC5C20 REGS: efbc5b70 TRAP: 0300
&gt;Not tainted
&gt;  MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
&gt;  DAR: 00000020, DSISR: 40000000
&gt;  TASK = efb012c0[1213] 'pmud' THREAD: efbc4000
&gt;  Last syscall: 54   GPR00: 00080000 EFBC5C20 EFB012C0 EFE9E044
&gt;EFBC5CE8 00000002 00000000 C03B0000   GPR08: C046E5D8 00000000
&gt;C03B47C8 E6A58360 22042422 1001E4DC 10010000 10000000   GPR16:
&gt;10000000 10000000 10000000 7FE4EB40 10000000 10000000 10010000
&gt;C0400000   GPR24: C0380000 00000002 00000002 C046E0C0 00000000
&gt;00000002 00000000 EFBC5CE8   NIP [c01e1948] as_insert_request+0xa8/0x6b0
&gt;  LR [c01d6a60] __elv_add_request+0xa0/0x100
&gt;  Call trace:
&gt;   [c01d6a60] __elv_add_request+0xa0/0x100
&gt;   [c01ffb84] ide_do_drive_cmd+0xb4/0x190
&gt;   [c01fc1c0] generic_ide_suspend+0x80/0xa0
&gt;   [c01d4574] suspend_device+0x104/0x160
&gt;   [c01d47c0] device_suspend+0x120/0x330
&gt;   [c03f3b50] pmac_suspend_devices+0x50/0x1b0
&gt;   [c03f4294] pmu_ioctl+0x344/0x9b0
&gt;   [c0082aa4] do_ioctl+0x84/0x90
&gt;   [c0082b3c] vfs_ioctl+0x8c/0x460
&gt;   [c0082f50] sys_ioctl+0x40/0x80
&gt;   [c0004850] ret_from_syscall+0x0/0x4c

Don't clear -&gt;elevator_data on exit, if we are switching queues we are
overwriting the data of the new io scheduler.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Chris Wright &lt;chrisw@osdl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] gfp flags annotations - part 1</title>
<updated>2005-10-08T22:00:57+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@ftp.linux.org.uk</email>
</author>
<published>2005-10-07T06:46:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dd0fc66fb33cd610bc1a5db8a5e232d34879b4d7'/>
<id>dd0fc66fb33cd610bc1a5db8a5e232d34879b4d7</id>
<content type='text'>
 - added typedef unsigned int __nocast gfp_t;

 - replaced __nocast uses for gfp flags with gfp_t - it gives exactly
   the same warnings as far as sparse is concerned, doesn't change
   generated code (from gcc point of view we replaced unsigned int with
   typedef) and documents what's going on far better.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - added typedef unsigned int __nocast gfp_t;

 - replaced __nocast uses for gfp flags with gfp_t - it gives exactly
   the same warnings as far as sparse is concerned, doesn't change
   generated code (from gcc point of view we replaced unsigned int with
   typedef) and documents what's going on far better.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] scsi_ioctl: only warn for rejected commands</title>
<updated>2005-10-08T22:00:57+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2005-10-07T17:41:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3b0e77bd144203a507eb191f7117d2c5004ea1de'/>
<id>3b0e77bd144203a507eb191f7117d2c5004ea1de</id>
<content type='text'>
We should not be warning about commands that we allow, even if they are
unknown. So move the if-root-allow check up a notch.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We should not be warning about commands that we allow, even if they are
unknown. So move the if-root-allow check up a notch.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] ub: Comment out unconditional stall clear</title>
<updated>2005-09-22T14:58:26+00:00</updated>
<author>
<name>Pete Zaitcev</name>
<email>zaitcev@redhat.com</email>
</author>
<published>2005-09-22T07:49:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c6c88834b2c6635df9d17695feb50c835bc8efc6'/>
<id>c6c88834b2c6635df9d17695feb50c835bc8efc6</id>
<content type='text'>
This code appears to be more trouble than it's worth, considering that
no normal users reload drivers. So, we comment it for now. It is not
removed outright for the benefit of hackers (that is, myself).

Signed-off-by: Pete Zaitcev &lt;zaitcev@yahoo.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This code appears to be more trouble than it's worth, considering that
no normal users reload drivers. So, we comment it for now. It is not
removed outright for the benefit of hackers (that is, myself).

Signed-off-by: Pete Zaitcev &lt;zaitcev@yahoo.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] ub: fix burning cds</title>
<updated>2005-09-22T14:58:25+00:00</updated>
<author>
<name>Pete Zaitcev</name>
<email>zaitcev@redhat.com</email>
</author>
<published>2005-09-22T07:48:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=64bd84538ac7f8ba3080eda4d92c66a8441cc6cc'/>
<id>64bd84538ac7f8ba3080eda4d92c66a8441cc6cc</id>
<content type='text'>
This patch fixes a few problems with ub and cleans up a couple of things:

 - Bump UB_MAX_REQ_SG, this allows to burn CDs
 - Drop initialization of urb.transfer_flags,
   now that URB_UNLINK_ASYNC is gone
 - Add forgotten processing of stalls at GetMaxLUN
 - Remove a few more P3-tagged printks whose time has come
 - Correct comment about ZIP-100

Signed-off-by: Pete Zaitcev &lt;zaitcev@yahoo.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;

 drivers/block/ub.c |   53 +++++++++++++++++++++++++++--------------------------
 1 file changed, 27 insertions(+), 26 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes a few problems with ub and cleans up a couple of things:

 - Bump UB_MAX_REQ_SG, this allows to burn CDs
 - Drop initialization of urb.transfer_flags,
   now that URB_UNLINK_ASYNC is gone
 - Add forgotten processing of stalls at GetMaxLUN
 - Remove a few more P3-tagged printks whose time has come
 - Correct comment about ZIP-100

Signed-off-by: Pete Zaitcev &lt;zaitcev@yahoo.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;

 drivers/block/ub.c |   53 +++++++++++++++++++++++++++--------------------------
 1 file changed, 27 insertions(+), 26 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] remove blkdev_scsi_issue_flush_fn again</title>
<updated>2005-09-21T17:11:54+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2005-09-21T16:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bbcc6bee9e5bf45ec35e87a4e0755dff09fe25d4'/>
<id>bbcc6bee9e5bf45ec35e87a4e0755dff09fe25d4</id>
<content type='text'>
This function was removed a while ago, but crept in again via a recent
scsi merge.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This function was removed a while ago, but crept in again via a recent
scsi merge.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] cciss: busy_initializing bug fix</title>
<updated>2005-09-21T17:11:54+00:00</updated>
<author>
<name>Mike Miller</name>
<email>mike.miller@hp.com</email>
</author>
<published>2005-09-21T16:55:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d6dbf42ee36d4f9ffc2a93877c19937c81974124'/>
<id>d6dbf42ee36d4f9ffc2a93877c19937c81974124</id>
<content type='text'>
This patch fixes the problem Bjorn reported.  The busy_initializing flag
should have cleared before going into the for loop.

Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes the problem Bjorn reported.  The busy_initializing flag
should have cleared before going into the for loop.

Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] fix pf request handling</title>
<updated>2005-09-17T18:50:03+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2005-09-17T02:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9564df1ff3c61f41bdc54283715417ccdfb6782b'/>
<id>9564df1ff3c61f41bdc54283715417ccdfb6782b</id>
<content type='text'>
Here's the patch from

http://bugzilla.kernel.org/show_bug.cgi?id=4853

It is a feeble attempt at fixing the request handling in pf, it is totally
foobar right now.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Here's the patch from

http://bugzilla.kernel.org/show_bug.cgi?id=4853

It is a feeble attempt at fixing the request handling in pf, it is totally
foobar right now.

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] scsi_ioctl: Add WRITE_LONG_2 as write safe command</title>
<updated>2005-09-17T18:50:01+00:00</updated>
<author>
<name>Thomas Maguin</name>
<email>T.Maguin@web.de</email>
</author>
<published>2005-09-17T02:27:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0faf3d3d08bb20d803ba090a1bc1ffedaea6ced6'/>
<id>0faf3d3d08bb20d803ba090a1bc1ffedaea6ced6</id>
<content type='text'>
Add WRITE_LONG_2 as write safe commands, which which allows normal users to
make a c1-, c2- and cu-scan (so called cxscan) with readcd on
cxscan-capable cd/dvd-writers

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Cc: James Bottomley &lt;James.Bottomley@steeleye.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add WRITE_LONG_2 as write safe commands, which which allows normal users to
make a c1-, c2- and cu-scan (so called cxscan) with readcd on
cxscan-capable cd/dvd-writers

Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
Cc: James Bottomley &lt;James.Bottomley@steeleye.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
