<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers, branch v2.6.24-rc7</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers?h=v2.6.24-rc7</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers?h=v2.6.24-rc7'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2008-01-06T18:17:12Z</updated>
<entry>
<title>Revert "scsi: revert "[SCSI] Get rid of scsi_cmnd-&gt;done""</title>
<updated>2008-01-06T18:17:12Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@woody.linux-foundation.org</email>
</author>
<published>2008-01-06T18:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7b3d9545f9ac8b31528dd2d6d8ec8d19922917b8'/>
<id>urn:sha1:7b3d9545f9ac8b31528dd2d6d8ec8d19922917b8</id>
<content type='text'>
This reverts commit ac40532ef0b8649e6f7f83859ea0de1c4ed08a19, which gets
us back the original cleanup of 6f5391c283d7fdcf24bf40786ea79061919d1e1d.

It turns out that the bug that was triggered by that commit was
apparently not actually triggered by that commit at all, and just the
testing conditions had changed enough to make it appear to be due to it.

The real problem seems to have been found by Peter Osterlund:

  "pktcdvd sets it [block device size] when opening the /dev/pktcdvd
   device, but when the drive is later opened as /dev/scd0, there is
   nothing that sets it back.  (Btw, 40944 is possible if the disk is a
   CDRW that was formatted with "cdrwtool -m 10236".)

   The problem is that pktcdvd opens the cd device in non-blocking mode
   when pktsetup is run, and doesn't close it again until pktsetup -d is
   run.  The effect is that if you meanwhile open the cd device,
   blkdev.c:do_open() doesn't call bd_set_size() because
   bdev-&gt;bd_openers is non-zero."

In particular, to repeat the bug (regardless of whether commit
6f5391c283d7fdcf24bf40786ea79061919d1e1d is applied or not):

  " 1. Start with an empty drive.
    2. pktsetup 0 /dev/scd0
    3. Insert a CD containing an isofs filesystem.
    4. mount /dev/pktcdvd/0 /mnt/tmp
    5. umount /mnt/tmp
    6. Press the eject button.
    7. Insert a DVD containing a non-writable filesystem.
    8. mount /dev/scd0 /mnt/tmp
    9. find /mnt/tmp -type f -print0 | xargs -0 sha1sum &gt;/dev/null
    10. If the DVD contains data beyond the physical size of a CD, you
        get I/O errors in the terminal, and dmesg reports lots of
        "attempt to access beyond end of device" errors."

which in turn is because the nested open after the media change won't
cause the size to be set properly (because the original open still holds
the block device, and we only do the bd_set_size() when we don't have
other people holding the device open).

The proper fix for that is probably to just do something like

	bdev-&gt;bd_inode-&gt;i_size = (loff_t)get_capacity(disk)&lt;&lt;9;

in fs/block_dev.c:do_open() even for the cases where we're not the
original opener (but *not* call bd_set_size(), since that will also
change the block size of the device).

Cc: Peter Osterlund &lt;petero2@telia.com&gt;
Cc: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
Cc: Matthew Wilcox &lt;matthew@wil.cx&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[SCSI] SRP transport: only remove our own entries</title>
<updated>2008-01-04T20:15:51Z</updated>
<author>
<name>Dave Dillow</name>
<email>dillowda@ornl.gov</email>
</author>
<published>2008-01-04T02:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=911833440b498e3e4fe2f12c1ae2bd44400c7004'/>
<id>urn:sha1:911833440b498e3e4fe2f12c1ae2bd44400c7004</id>
<content type='text'>
The SCSI SRP transport class currently iterates over all children
devices of the host that is being removed in srp_remove_host(). However,
not all of those children were created by the SRP transport, and
removing them will cause corruption and an oops when their creator tries
to remove them.

Signed-off-by: David Dillow &lt;dillowda@ornl.gov&gt;
Acked-by: FUJITA Tomonori &lt;fujita.tomonori@lab.ntt.co.jp&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[ISDN]: i4l: Fix DLE handling for i4l-audio</title>
<updated>2008-01-04T11:55:44Z</updated>
<author>
<name>Matthias Goebl</name>
<email>matthias.goebl@goebl.net</email>
</author>
<published>2008-01-04T11:45:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7fde4d779b83898851959f837c9b26fe07ee91c9'/>
<id>urn:sha1:7fde4d779b83898851959f837c9b26fe07ee91c9</id>
<content type='text'>
The DLE handling in i4l-audio seems to be broken.

It produces spurious DLEs so asterisk 1.2.24 with chan_modem_i4l
gets irritated, the error message is:
"chan_modem_i4l.c:450 i4l_read: Value of escape is ^ (17)".
-&gt; There shouldn't be a DLE-^.
If a spurious DLE-ETX occurs, the audio connection even dies.
I use a "AVM Fritz!PCI" isdn card.

I found two issues that only appear if ISDN_AUDIO_SKB_DLECOUNT(skb) &gt; 0:
- The loop in isdn_tty.c:isdn_tty_try_read() doesn't escape a DLE if it's
  the last character.

- The loop in isdn_common.c:isdn_readbchan_tty() doesn't copy its characters,
  it only remembers the last one ("last = *p;").

  Compare it with the loop in isdn_common.c:isdn_readbchan(), that *does*
  copy them ("*cp++ = *p;") correctly.
  The special handling of the "last" character made it more difficult.
  I compared it to linux-2.4.19: There was no "last"-handling and both loops
  did escape and copy all characters correctly.

Signed-off-by: Matthias Goebl &lt;matthias.goebl@goebl.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[ISDN] i4l: 'NO CARRIER' message lost after ldisc flush</title>
<updated>2008-01-04T11:55:40Z</updated>
<author>
<name>Matthias Goebl</name>
<email>matthias.goebl@goebl.net</email>
</author>
<published>2008-01-04T10:19:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=00409bb045887ec5e7b9e351bc080c38ab6bfd33'/>
<id>urn:sha1:00409bb045887ec5e7b9e351bc080c38ab6bfd33</id>
<content type='text'>
The ISDN tty layer doesn't produce a 'NO CARRIER' message after hangup.

I suppose it broke when tty_buffer_flush() has been added to
tty_ldisc_flush() in the commit below.

For isdn_tty_modem_result(RESULT_NO_CARRIER..) the
message inserted via isdn_tty_at_cout() -&gt; tty_insert_flip_char()
is flushed immediately by tty_ldisc_flush() -&gt; tty_buffer_flush().
More annoyingly, the audio abort sequence DLE-ETX is also lost.

This patch fixes only active audio connections, because I assume that nobody
changes the line discipline for audio.

For non-audio connections the problem remains.
Maybe we can remove the tty_ldisc_flush() in isdn_tty_modem_result()
at all because it's done at tty_close?

On Mon, May 07, 2007 at 04:05:57PM -0500, Paul Fulghum wrote:
&gt; Flush the tty flip buffer when the line discipline
&gt; input queue is flushed, including the user call
&gt; tcflush(TCIFLUSH/TCIOFLUSH). This prevents unexpected
&gt; stale data after a user application calls tcflush().
&gt;
&gt; Cc: Alan Cox &lt;alan@lxorguk.org.uk&gt;
&gt; Cc: Antonino Ingargiola &lt;tritemio@gmail.com&gt;
&gt; Signed-off-by: Paul Fulghum &lt;paulkf@microgate.com&gt;
&gt;
&gt; --- a/drivers/char/tty_io.c	2007-05-04 05:46:55.000000000 -0500
&gt; +++ b/drivers/char/tty_io.c	2007-05-05 03:23:46.000000000 -0500
&gt; @@ -1240,6 +1263,7 @@ void tty_ldisc_flush(struct tty_struct *
&gt;  			ld-&gt;flush_buffer(tty);
&gt;  		tty_ldisc_deref(ld);
&gt;  	}
&gt; +	tty_buffer_flush(tty);
[..]

Signed-off-by: Matthias Goebl &lt;matthias.goebl@goebl.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CONNECTOR]: Return proper error code in cn_call_callback()</title>
<updated>2008-01-04T11:55:37Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2008-01-04T09:52:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=134d99e302618eeb102c2a5be1f9e98696288bdd'/>
<id>urn:sha1:134d99e302618eeb102c2a5be1f9e98696288bdd</id>
<content type='text'>
Error code should be set to EINVAL instead of ENODEV if !queue_work().
There's another call of queue_work() which may set err to EINVAL.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CASSINI]: Bump driver version and release date.</title>
<updated>2008-01-04T11:55:30Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-04T08:16:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=14be85f555fa53a3b80119569e4c2fe88aa9fd3e'/>
<id>urn:sha1:14be85f555fa53a3b80119569e4c2fe88aa9fd3e</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CASSINI]: Fix two obvious NAPI bugs.</title>
<updated>2008-01-04T11:55:27Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-04T08:23:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=86216268b9cdad57f9aa540ebf49cbae2f38b583'/>
<id>urn:sha1:86216268b9cdad57f9aa540ebf49cbae2f38b583</id>
<content type='text'>
1) close should do napi_disable() not napi_enable
2) remove unused local var 'todo'

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CASSINI]: Set skb-&gt;truesize properly on receive packets.</title>
<updated>2008-01-04T11:55:24Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-04T08:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d011a231675b240157a3c335dd53e9b849d7d30d'/>
<id>urn:sha1:d011a231675b240157a3c335dd53e9b849d7d30d</id>
<content type='text'>
skb-&gt;truesize was not being incremented at all to
reflect the page based data added to RX SKBs.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CASSINI]: Program parent Intel31154 bridge when necessary.</title>
<updated>2008-01-04T11:55:22Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-04T04:11:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9e1848b60d09a715ff1e19aa6fda47e061d04965'/>
<id>urn:sha1:9e1848b60d09a715ff1e19aa6fda47e061d04965</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[CASSINI]: Revert 'dont touch page_count'.</title>
<updated>2008-01-04T11:55:19Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-04T03:33:50Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9de4dfb4c7176e5bb232a21cdd8df78da2b15cac'/>
<id>urn:sha1:9de4dfb4c7176e5bb232a21cdd8df78da2b15cac</id>
<content type='text'>
This reverts changeset fa4f0774d7c6cccb4d1fda76b91dd8eddcb2dd6a
([CASSINI]: dont touch page_count) because it breaks the driver.

The local page counting added by this changeset did not account
for the asynchronous page count changes done by kfree_skb()
and friends.

The change adds extra atomics and on top of it all appears to be
totally unnecessary as well.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: Nick Piggin &lt;npiggin@suse.de&gt;
</content>
</entry>
</feed>
