<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/block/ioctl.c, branch v2.6.27.14</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>block/ioctl.c and fs/partition/check.c: check value returned by add_partition()</title>
<updated>2008-07-25T17:53:44+00:00</updated>
<author>
<name>Abdel Benamrouche</name>
<email>draconux@gmail.com</email>
</author>
<published>2008-07-25T08:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=04ebd4aee52b06a2c38127d9208546e5b96f3a19'/>
<id>04ebd4aee52b06a2c38127d9208546e5b96f3a19</id>
<content type='text'>
Now that add_partition() has been aught to propagate errors, let's check them.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Abdel Benamrouche &lt;draconux@gmail.com&gt;
Cc: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that add_partition() has been aught to propagate errors, let's check them.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Abdel Benamrouche &lt;draconux@gmail.com&gt;
Cc: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>compat_ioctl: move common block ioctls to compat_blkdev_ioctl</title>
<updated>2007-10-10T07:26:00+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2007-10-09T11:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f58c4c0a17e500e767473598b3deafaa1d64051d'/>
<id>f58c4c0a17e500e767473598b3deafaa1d64051d</id>
<content type='text'>
Make compat_blkdev_ioctl and blkdev_ioctl reflect the respective
native versions. This is somewhat more efficient and makes it easier
to keep the two in sync.

Also get rid of the bogus handling for broken_blkgetsize and the
duplicate entry for BLKRASET.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make compat_blkdev_ioctl and blkdev_ioctl reflect the respective
native versions. This is somewhat more efficient and makes it easier
to keep the two in sync.

Also get rid of the bogus handling for broken_blkgetsize and the
duplicate entry for BLKRASET.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm: remove destroy_dirty_buffers from invalidate_bdev()</title>
<updated>2007-05-07T19:12:55+00:00</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2007-05-06T21:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f98393a64ca1392130724c3acb4e3f325801d2b6'/>
<id>f98393a64ca1392130724c3acb4e3f325801d2b6</id>
<content type='text'>
Remove the destroy_dirty_buffers argument from invalidate_bdev(), it hasn't
been used in 6 years (so akpm says).

find * -name \*.[ch] | xargs grep -l invalidate_bdev |
while read file; do
	quilt add $file;
	sed -ie 's/invalidate_bdev(\([^,]*\),[^)]*)/invalidate_bdev(\1)/g' $file;
done

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the destroy_dirty_buffers argument from invalidate_bdev(), it hasn't
been used in 6 years (so akpm says).

find * -name \*.[ch] | xargs grep -l invalidate_bdev |
while read file; do
	quilt add $file;
	sed -ie 's/invalidate_bdev(\([^,]*\),[^)]*)/invalidate_bdev(\1)/g' $file;
done

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] lockdep: annotate BLKPG_DEL_PARTITION</title>
<updated>2007-02-21T01:10:16+00:00</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2007-02-20T21:58:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6d740cd5b18bc8128e70f98cfde8c74ebd21cea1'/>
<id>6d740cd5b18bc8128e70f98cfde8c74ebd21cea1</id>
<content type='text'>
&gt;=============================================
&gt;[ INFO: possible recursive locking detected ]
&gt;2.6.19-1.2909.fc7 #1
&gt;---------------------------------------------
&gt;anaconda/587 is trying to acquire lock:
&gt; (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;but task is already holding lock:
&gt; (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;other info that might help us debug this:
&gt;1 lock held by anaconda/587:
&gt; #0:  (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;stack backtrace:
&gt; [&lt;c0405812&gt;] show_trace_log_lvl+0x1a/0x2f
&gt; [&lt;c0405db2&gt;] show_trace+0x12/0x14
&gt; [&lt;c0405e36&gt;] dump_stack+0x16/0x18
&gt; [&lt;c043bd84&gt;] __lock_acquire+0x116/0xa09
&gt; [&lt;c043c960&gt;] lock_acquire+0x56/0x6f
&gt; [&lt;c05fb1fa&gt;] __mutex_lock_slowpath+0xe5/0x24a
&gt; [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt; [&lt;c04d82fb&gt;] blkdev_ioctl+0x600/0x76d
&gt; [&lt;c04946b1&gt;] block_ioctl+0x1b/0x1f
&gt; [&lt;c047ed5a&gt;] do_ioctl+0x22/0x68
&gt; [&lt;c047eff2&gt;] vfs_ioctl+0x252/0x265
&gt; [&lt;c047f04e&gt;] sys_ioctl+0x49/0x63
&gt; [&lt;c0404070&gt;] syscall_call+0x7/0xb

Annotate BLKPG_DEL_PARTITION's bd_mutex locking and add a little comment
clarifying the bd_mutex locking, because I confused myself and initially
thought the lock order was wrong too.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
&gt;=============================================
&gt;[ INFO: possible recursive locking detected ]
&gt;2.6.19-1.2909.fc7 #1
&gt;---------------------------------------------
&gt;anaconda/587 is trying to acquire lock:
&gt; (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;but task is already holding lock:
&gt; (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;other info that might help us debug this:
&gt;1 lock held by anaconda/587:
&gt; #0:  (&amp;bdev-&gt;bd_mutex){--..}, at: [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt;
&gt;stack backtrace:
&gt; [&lt;c0405812&gt;] show_trace_log_lvl+0x1a/0x2f
&gt; [&lt;c0405db2&gt;] show_trace+0x12/0x14
&gt; [&lt;c0405e36&gt;] dump_stack+0x16/0x18
&gt; [&lt;c043bd84&gt;] __lock_acquire+0x116/0xa09
&gt; [&lt;c043c960&gt;] lock_acquire+0x56/0x6f
&gt; [&lt;c05fb1fa&gt;] __mutex_lock_slowpath+0xe5/0x24a
&gt; [&lt;c05fb380&gt;] mutex_lock+0x21/0x24
&gt; [&lt;c04d82fb&gt;] blkdev_ioctl+0x600/0x76d
&gt; [&lt;c04946b1&gt;] block_ioctl+0x1b/0x1f
&gt; [&lt;c047ed5a&gt;] do_ioctl+0x22/0x68
&gt; [&lt;c047eff2&gt;] vfs_ioctl+0x252/0x265
&gt; [&lt;c047f04e&gt;] sys_ioctl+0x49/0x63
&gt; [&lt;c0404070&gt;] syscall_call+0x7/0xb

Annotate BLKPG_DEL_PARTITION's bd_mutex locking and add a little comment
clarifying the bd_mutex locking, because I confused myself and initially
thought the lock order was wrong too.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PARTITION]: Add whole_disk attribute.</title>
<updated>2007-02-11T07:50:00+00:00</updated>
<author>
<name>Fabio Massimo Di Nitto</name>
<email>fabbione@ubuntu.com</email>
</author>
<published>2007-02-11T07:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d18d7682c18b617f523df6beea5ea0bd396ed0bd'/>
<id>d18d7682c18b617f523df6beea5ea0bd396ed0bd</id>
<content type='text'>
Some partitioning systems create special partitions that
span the entire disk.  One example are Sun partitions, and
this whole-disk partition exists to tell the firmware the
extent of the entire device so it can load the boot block
and do other things.

Such partitions should not be treated as normal partitions,
because all the other partitions overlap this whole-disk one.
So we'd see multiple instances of the same UUID etc. which
we do not want.  udev and friends can thus search for this
'whole_disk' attribute and use it to decide to ignore the
partition.

Signed-off-by: Fabio Massimo Di Nitto &lt;fabbione@ubuntu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some partitioning systems create special partitions that
span the entire disk.  One example are Sun partitions, and
this whole-disk partition exists to tell the firmware the
extent of the entire device so it can load the boot block
and do other things.

Such partitions should not be treated as normal partitions,
because all the other partitions overlap this whole-disk one.
So we'd see multiple instances of the same UUID etc. which
we do not want.  udev and friends can thus search for this
'whole_disk' attribute and use it to decide to ignore the
partition.

Signed-off-by: Fabio Massimo Di Nitto &lt;fabbione@ubuntu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] struct path: convert block</title>
<updated>2006-12-08T16:28:44+00:00</updated>
<author>
<name>Josef Sipek</name>
<email>jsipek@fsl.cs.sunysb.edu</email>
</author>
<published>2006-12-08T10:36:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c5a20b6c26efb58c2ba2ebebcc65748f5b92f662'/>
<id>c5a20b6c26efb58c2ba2ebebcc65748f5b92f662</id>
<content type='text'>
Signed-off-by: Josef Sipek &lt;jsipek@fsl.cs.sunysb.edu&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>
Signed-off-by: Josef Sipek &lt;jsipek@fsl.cs.sunysb.edu&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] remove the old bd_mutex lockdep annotation</title>
<updated>2006-12-08T16:28:38+00:00</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2006-12-08T10:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2e7b651df113c8a463853e4169951c52c39f9d19'/>
<id>2e7b651df113c8a463853e4169951c52c39f9d19</id>
<content type='text'>
Remove the old complex and crufty bd_mutex annotation.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Neil Brown &lt;neilb@cse.unsw.edu.au&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Cc: Jason Baron &lt;jbaron@redhat.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>
Remove the old complex and crufty bd_mutex annotation.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Neil Brown &lt;neilb@cse.unsw.edu.au&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Cc: Jason Baron &lt;jbaron@redhat.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] dm: export blkdev_driver_ioctl</title>
<updated>2006-10-03T15:04:13+00:00</updated>
<author>
<name>Alasdair G Kergon</name>
<email>agk@redhat.com</email>
</author>
<published>2006-10-03T08:15:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7006f6eca874cd44d37ccb8cfeb8bed04e3bff22'/>
<id>7006f6eca874cd44d37ccb8cfeb8bed04e3bff22</id>
<content type='text'>
Export blkdev_driver_ioctl for device-mapper.

If we get as far as the device-mapper ioctl handler, we know the ioctl is not
a standard block layer BLK* one, so we don't need to check for them a second
time and can call blkdev_driver_ioctl() directly.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.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>
Export blkdev_driver_ioctl for device-mapper.

If we get as far as the device-mapper ioctl handler, we know the ioctl is not
a standard block layer BLK* one, so we don't need to check for them a second
time and can call blkdev_driver_ioctl() directly.

Signed-off-by: Alasdair G Kergon &lt;agk@redhat.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] lockdep: annotate the BLKPG_DEL_PARTITION ioctl</title>
<updated>2006-07-15T04:53:53+00:00</updated>
<author>
<name>Arjan van de Ven</name>
<email>arjan@linux.intel.com</email>
</author>
<published>2006-07-14T07:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ddca60c59032b2c2babc0003cf01015aff340b79'/>
<id>ddca60c59032b2c2babc0003cf01015aff340b79</id>
<content type='text'>
The delete partition IOCTL takes the bd_mutex for both the disk and the
partition; these have an obvious hierarchical relationship and this patch
annotates this relationship for lockdep.

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&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>
The delete partition IOCTL takes the bd_mutex for both the disk and the
partition; these have an obvious hierarchical relationship and this patch
annotates this relationship for lockdep.

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Acked-by: Ingo Molnar &lt;mingo@elte.hu&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] Block queue IO tracing support (blktrace) as of 2006-03-23</title>
<updated>2006-03-23T19:00:26+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@suse.de</email>
</author>
<published>2006-03-23T19:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4'/>
<id>2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4</id>
<content type='text'>
Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jens Axboe &lt;axboe@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
