<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/block/umem.c, branch linux-3.2.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>umem: fix up unplugging</title>
<updated>2012-07-12T03:31:59+00:00</updated>
<author>
<name>Tao Guo</name>
<email>glorioustao@gmail.com</email>
</author>
<published>2012-06-13T19:17:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a7afeb907a0418b5645187b5ac4f37e7ae3906e3'/>
<id>a7afeb907a0418b5645187b5ac4f37e7ae3906e3</id>
<content type='text'>
commit 32587371ad3db2f9d335de10dbd8cffd4fff5669 upstream.

Fix a regression introduced by 7eaceaccab5f40 ("block: remove per-queue
plugging").  In that patch, Jens removed the whole mm_unplug_device()
function, which used to be the trigger to make umem start to work.

We need to implement unplugging to make umem start to work, or I/O will
never be triggered.

Signed-off-by: Tao Guo &lt;Tao.Guo@emc.com&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Cc: Jens Axboe &lt;axboe@kernel.dk&gt;
Cc: Shaohua Li &lt;shli@kernel.org&gt;
Acked-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 32587371ad3db2f9d335de10dbd8cffd4fff5669 upstream.

Fix a regression introduced by 7eaceaccab5f40 ("block: remove per-queue
plugging").  In that patch, Jens removed the whole mm_unplug_device()
function, which used to be the trigger to make umem start to work.

We need to implement unplugging to make umem start to work, or I/O will
never be triggered.

Signed-off-by: Tao Guo &lt;Tao.Guo@emc.com&gt;
Cc: Neil Brown &lt;neilb@suse.de&gt;
Cc: Jens Axboe &lt;axboe@kernel.dk&gt;
Cc: Shaohua Li &lt;shli@kernel.org&gt;
Acked-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>block: remove support for bio remapping from -&gt;make_request</title>
<updated>2011-09-12T10:12:01+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@infradead.org</email>
</author>
<published>2011-09-12T10:12:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5a7bbad27a410350e64a2d7f5ec18fc73836c14f'/>
<id>5a7bbad27a410350e64a2d7f5ec18fc73836c14f</id>
<content type='text'>
There is very little benefit in allowing to let a -&gt;make_request
instance update the bios device and sector and loop around it in
__generic_make_request when we can archive the same through calling
generic_make_request from the driver and letting the loop in
generic_make_request handle it.

Note that various drivers got the return value from -&gt;make_request and
returned non-zero values for errors.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is very little benefit in allowing to let a -&gt;make_request
instance update the bios device and sector and loop around it in
__generic_make_request when we can archive the same through calling
generic_make_request from the driver and letting the loop in
generic_make_request handle it.

Note that various drivers got the return value from -&gt;make_request and
returned non-zero values for errors.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: NeilBrown &lt;neilb@suse.de&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'for-2.6.39/stack-plug' into for-2.6.39/core</title>
<updated>2011-03-10T07:58:35+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>jaxboe@fusionio.com</email>
</author>
<published>2011-03-10T07:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4c63f5646e405b5010cc9499419060bf2e838f5b'/>
<id>4c63f5646e405b5010cc9499419060bf2e838f5b</id>
<content type='text'>
Conflicts:
	block/blk-core.c
	block/blk-flush.c
	drivers/md/raid1.c
	drivers/md/raid10.c
	drivers/md/raid5.c
	fs/nilfs2/btnode.c
	fs/nilfs2/mdt.c

Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	block/blk-core.c
	block/blk-flush.c
	drivers/md/raid1.c
	drivers/md/raid10.c
	drivers/md/raid5.c
	fs/nilfs2/btnode.c
	fs/nilfs2/mdt.c

Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>block: remove per-queue plugging</title>
<updated>2011-03-10T07:52:07+00:00</updated>
<author>
<name>Jens Axboe</name>
<email>jaxboe@fusionio.com</email>
</author>
<published>2011-03-10T07:52:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=7eaceaccab5f40bbfda044629a6298616aeaed50'/>
<id>7eaceaccab5f40bbfda044629a6298616aeaed50</id>
<content type='text'>
Code has been converted over to the new explicit on-stack plugging,
and delay users have been converted to use the new API for that.
So lets kill off the old plugging along with aops-&gt;sync_page().

Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Code has been converted over to the new explicit on-stack plugging,
and delay users have been converted to use the new API for that.
So lets kill off the old plugging along with aops-&gt;sync_page().

Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>umem: Drop dummy -&gt;media_changed()</title>
<updated>2011-03-09T18:54:28+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2011-03-09T18:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=6fac80e3aa9e5bfc6cadb9ea8d0584c557c4b198'/>
<id>6fac80e3aa9e5bfc6cadb9ea8d0584c557c4b198</id>
<content type='text'>
umem doesn't implement media changed detection and there's no need to
implement dummy callback anymore.  Remove it.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Jens Axboe &lt;axboe@kernel.dk&gt;
Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
umem doesn't implement media changed detection and there's no need to
implement dummy callback anymore.  Remove it.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Jens Axboe &lt;axboe@kernel.dk&gt;
Cc: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>block: unify flags for struct bio and struct request</title>
<updated>2010-08-07T16:20:39+00:00</updated>
<author>
<name>Christoph Hellwig</name>
<email>hch@lst.de</email>
</author>
<published>2010-08-07T16:20:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=7b6d91daee5cac6402186ff224c3af39d79f4a0e'/>
<id>7b6d91daee5cac6402186ff224c3af39d79f4a0e</id>
<content type='text'>
Remove the current bio flags and reuse the request flags for the bio, too.
This allows to more easily trace the type of I/O from the filesystem
down to the block driver.  There were two flags in the bio that were
missing in the requests:  BIO_RW_UNPLUG and BIO_RW_AHEAD.  Also I've
renamed two request flags that had a superflous RW in them.

Note that the flags are in bio.h despite having the REQ_ name - as
blkdev.h includes bio.h that is the only way to go for now.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the current bio flags and reuse the request flags for the bio, too.
This allows to more easily trace the type of I/O from the filesystem
down to the block driver.  There were two flags in the bio that were
missing in the requests:  BIO_RW_UNPLUG and BIO_RW_AHEAD.  Also I've
renamed two request flags that had a superflous RW in them.

Note that the flags are in bio.h despite having the REQ_ name - as
blkdev.h includes bio.h that is the only way to go for now.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jens Axboe &lt;jaxboe@fusionio.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-03-24T08:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -&gt; slab.h dependency is about to be removed.  Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability.  As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
  only the necessary includes are there.  ie. if only gfp is used,
  gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
  blocks and try to put the new include such that its order conforms
  to its surrounding.  It's put in the include block which contains
  core kernel includes, in the same order that the rest are ordered -
  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
  doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
  because the file doesn't have fitting include block), it prints out
  an error message indicating which .h file needs to be added to the
  file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
   over 4000 files, deleting around 700 includes and adding ~480 gfp.h
   and ~3000 slab.h inclusions.  The script emitted errors for ~400
   files.

2. Each error was manually checked.  Some didn't need the inclusion,
   some needed manual addition while adding it to implementation .h or
   embedding .c file was more appropriate for others.  This step added
   inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
   from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
   e.g. lib/decompress_*.c used malloc/free() wrappers around slab
   APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
   editing them as sprinkling gfp.h and slab.h inclusions around .h
   files could easily lead to inclusion dependency hell.  Most gfp.h
   inclusion directives were ignored as stuff from gfp.h was usually
   wildly available and often used in preprocessor macros.  Each
   slab.h inclusion directive was examined and added manually as
   necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
   distributed build env didn't work with gcov compiles) and a few
   more options had to be turned off depending on archs to make things
   build (like ipr on powerpc/64 which failed due to missing writeq).

   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
   * powerpc and powerpc64 SMP allmodconfig
   * sparc and sparc64 SMP allmodconfig
   * ia64 SMP allmodconfig
   * s390 SMP allmodconfig
   * alpha SMP allmodconfig
   * um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
   a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>const: make block_device_operations const</title>
<updated>2009-09-22T14:17:25+00:00</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2009-09-22T00:01:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e'/>
<id>83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e</id>
<content type='text'>
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.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>
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.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>umem: fix request_queue lock warning</title>
<updated>2009-04-24T06:54:21+00:00</updated>
<author>
<name>Sage Weil</name>
<email>sage@newdream.ne</email>
</author>
<published>2009-04-23T06:37:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f3c737de8f57b5ce756010c2175f7d574194b30d'/>
<id>f3c737de8f57b5ce756010c2175f7d574194b30d</id>
<content type='text'>
The umem driver issues two warnings on boot, due to blk_plug_device() and
blk_remove_plug() being called without q-&gt;queue_lock held.  Starting with
e48ec690 (block: extend queue_flag bitops), the queue_flag_* functions
warn if q-&gt;queue_lock doesn't appear to be locked.  In fact, q-&gt;queue_lock
is NULL (though that apparently isn't otherwise a problem as the driver is
using card-&gt;lock for everything).

Although blk_init_queue() with take a request_fn_proc and spinlock_t*,
there isn't a corresponding init helper that takes a make_request_fn.
Setting queue_lock to &amp;card-&gt;lock explicitly seems to work fine for me.
The warning goes away and the device appears to behave.

[    1.531881] v2.3 : Micro Memory(tm) PCI memory board block driver
[    1.538136] umem 0000:02:01.0: PCI INT A -&gt; GSI 20 (level, low) -&gt; IRQ 20
[    1.545018] umem 0000:02:01.0: Micro Memory(tm) controller found (PCI Mem Module (Battery Backup))
[    1.554176] umem 0000:02:01.0: CSR 0xfc9ffc00 -&gt; 0xffffc200013d0c00 (0x100)
[    1.561279] umem 0000:02:01.0: Size 1048576 KB, Battery 1 Disabled (FAILURE), Battery 2 Disabled (FAILURE)
[    1.571114] umem 0000:02:01.0: Window size 16777216 bytes, IRQ 20
[    1.577304] umem 0000:02:01.0: memory NOT initialized. Consider over-writing whole device.
[    1.585989]  umema:&lt;4&gt;------------[ cut here ]------------
[    1.591775] WARNING: at include/linux/blkdev.h:492 blk_plug_device+0x6d/0x106()
[    1.592025] Hardware name: H8SSL
[    1.592025] Modules linked in:
[    1.592025] Pid: 1, comm: swapper Not tainted 2.6.29 #8
[    1.592025] Call Trace:
[    1.592025]  [&lt;ffffffff8023c994&gt;] warn_slowpath+0xd3/0xf2
[    1.592025]  [&lt;ffffffff8025a5b5&gt;] ? save_trace+0x3f/0x9b
[    1.592025]  [&lt;ffffffff8025a68b&gt;] ? add_lock_to_list+0x7a/0xba
[    1.592025]  [&lt;ffffffff8025e609&gt;] ? validate_chain+0xb3b/0xce8
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff8025ef04&gt;] ? __lock_acquire+0x74e/0x7b9
[    1.592025]  [&lt;ffffffff8025a70e&gt;] ? get_lock_stats+0x34/0x5e
[    1.592025]  [&lt;ffffffff8025a746&gt;] ? put_lock_stats+0xe/0x27
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff803ad165&gt;] blk_plug_device+0x6d/0x106
[    1.592025]  [&lt;ffffffff80441575&gt;] mm_make_request+0x46/0x59
[    1.592025]  [&lt;ffffffff803ac2d9&gt;] generic_make_request+0x335/0x3cf
[    1.592025]  [&lt;ffffffff8027fcc7&gt;] ? mempool_alloc_slab+0x11/0x13
[    1.592025]  [&lt;ffffffff8027fdce&gt;] ? mempool_alloc+0x45/0x101
[    1.592025]  [&lt;ffffffff8025a746&gt;] ? put_lock_stats+0xe/0x27
[    1.592025]  [&lt;ffffffff803adda5&gt;] submit_bio+0x10a/0x119
[    1.592025]  [&lt;ffffffff802c8d00&gt;] submit_bh+0xe5/0x109
[    1.592025]  [&lt;ffffffff802cbf43&gt;] block_read_full_page+0x2aa/0x2cb
[    1.592025]  [&lt;ffffffff802cf4c4&gt;] ? blkdev_get_block+0x0/0x4c
[    1.592025]  [&lt;ffffffff805c90a8&gt;] ? _spin_unlock_irq+0x36/0x51
[    1.592025]  [&lt;ffffffff80286836&gt;] ? __lru_cache_add+0x92/0xb2
[    1.592025]  [&lt;ffffffff802cf008&gt;] blkdev_readpage+0x13/0x15
[    1.592025]  [&lt;ffffffff8027de06&gt;] read_cache_page_async+0x90/0x134
[    1.592025]  [&lt;ffffffff802ceff5&gt;] ? blkdev_readpage+0x0/0x15
[    1.592025]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.592025]  [&lt;ffffffff8027deb8&gt;] read_cache_page+0xe/0x45
[    1.592025]  [&lt;ffffffff802f5170&gt;] read_dev_sector+0x2e/0x93
[    1.592025]  [&lt;ffffffff802f5f44&gt;] adfspart_check_ICS+0x28/0x16c
[    1.592025]  [&lt;ffffffff8025d427&gt;] ? trace_hardirqs_on+0xd/0xf
[    1.592025]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.592025]  [&lt;ffffffff802f59c5&gt;] rescan_partitions+0x168/0x2fb
[    1.592025]  [&lt;ffffffff802ceae9&gt;] __blkdev_get+0x259/0x336
[    1.592025]  [&lt;ffffffff803ca1e2&gt;] ? kobject_put+0x47/0x4b
[    1.592025]  [&lt;ffffffff802cebd1&gt;] blkdev_get+0xb/0xd
[    1.592025]  [&lt;ffffffff802f5773&gt;] register_disk+0xc4/0x12b
[    1.592025]  [&lt;ffffffff803b2a7b&gt;] add_disk+0xc3/0x12d
[    1.592025]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.592025]  [&lt;ffffffff808a1e73&gt;] mm_init+0x129/0x1a5
[    1.592025]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.592025]  [&lt;ffffffff80209056&gt;] _stext+0x56/0x130
[    1.592025]  [&lt;ffffffff80274932&gt;] ? register_irq_proc+0xae/0xca
[    1.592025]  [&lt;ffffffff802f0000&gt;] ? proc_pid_lookup+0xb4/0x18b
[    1.592025]  [&lt;ffffffff8087f975&gt;] kernel_init+0x132/0x18b
[    1.592025]  [&lt;ffffffff8020d17a&gt;] child_rip+0xa/0x20
[    1.592025]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.592025]  [&lt;ffffffff8087f843&gt;] ? kernel_init+0x0/0x18b
[    1.592025]  [&lt;ffffffff8020d170&gt;] ? child_rip+0x0/0x20
[    1.592025] ---[ end trace 7150b3b86da74e1e ]---
[    1.889858] ------------[ cut here ]------------[ve_plug+0x5f/0x91()
[    1.893848] Hardware name: H8SSL
[    1.893848] Modules linked in:
[    1.893848] Pid: 1, comm: swapper Tainted: G        W  2.6.29 #8
[    1.893848] Call Trace:
[    1.893848]  [&lt;ffffffff8023c994&gt;] warn_slowpath+0xd3/0xf2
[    1.893848]  [&lt;ffffffff805c8411&gt;] ? trace_hardirqs_on_thunk+0x3a/0x3f
[    1.893848]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.893848]  [&lt;ffffffff80254245&gt;] ? __atomic_notifier_call_chain+0x0/0xb2
[    1.893848]  [&lt;ffffffff805c90a3&gt;] ? _spin_unlock_irq+0x31/0x51
[    1.893848]  [&lt;ffffffff805c90bf&gt;] ? _spin_unlock_irq+0x4d/0x51
[    1.893848]  [&lt;ffffffff8044157d&gt;] ? mm_make_request+0x4e/0x59
[    1.893848]  [&lt;ffffffff8025a70e&gt;] ? get_lock_stats+0x34/0x5e
[    1.893848]  [&lt;ffffffff8025a75d&gt;] ? put_lock_stats+0x25/0x27
[    1.893848]  [&lt;ffffffff80441504&gt;] ? mm_unplug_device+0x25/0x50
[    1.893848]  [&lt;ffffffff803acf23&gt;] blk_remove_plug+0x5f/0x91
[    1.893848]  [&lt;ffffffff8044150f&gt;] mm_unplug_device+0x30/0x50
[    1.893848]  [&lt;ffffffff803ab74a&gt;] blk_unplug+0x78/0x7d
[    1.893848]  [&lt;ffffffff803ab75c&gt;] blk_backing_dev_unplug+0xd/0xf
[    1.893848]  [&lt;ffffffff802c853c&gt;] block_sync_page+0x4a/0x4c
[    1.893848]  [&lt;ffffffff8027da1c&gt;] sync_page+0x44/0x4d
[    1.893848]  [&lt;ffffffff805c66fd&gt;] __wait_on_bit_lock+0x42/0x8a
[    1.893848]  [&lt;ffffffff8027d9d8&gt;] ? sync_page+0x0/0x4d
[    1.893848]  [&lt;ffffffff8027d9c4&gt;] __lock_page+0x64/0x6b
[    1.893848]  [&lt;ffffffff802508db&gt;] ? wake_bit_function+0x0/0x2a
[    1.893848]  [&lt;ffffffff8027de4a&gt;] read_cache_page_async+0xd4/0x134
[    1.893848]  [&lt;ffffffff802ceff5&gt;] ? blkdev_readpage+0x0/0x15
[    1.893848]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.893848]  [&lt;ffffffff8027deb8&gt;] read_cache_page+0xe/0x45
[    1.893848]  [&lt;ffffffff802f5170&gt;] read_dev_sector+0x2e/0x93
[    1.893848]  [&lt;ffffffff802f5f44&gt;] adfspart_check_ICS+0x28/0x16c
[    1.893848]  [&lt;ffffffff8025d427&gt;] ? trace_hardirqs_on+0xd/0xf
[    1.893848]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.893848]  [&lt;ffffffff802f59c5&gt;] rescan_partitions+0x168/0x2fb
[    1.893848]  [&lt;ffffffff802ceae9&gt;] __blkdev_get+0x259/0x336
[    1.893848]  [&lt;ffffffff803ca1e2&gt;] ? kobject_put+0x47/0x4b
[    1.893848]  [&lt;ffffffff802cebd1&gt;] blkdev_get+0xb/0xd
[    1.893848]  [&lt;ffffffff802f5773&gt;] register_disk+0xc4/0x12b
[    1.893848]  [&lt;ffffffff803b2a7b&gt;] add_disk+0xc3/0x12d
[    1.893848]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.893848]  [&lt;ffffffff808a1e73&gt;] mm_init+0x129/0x1a5
[    1.893848]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.893848]  [&lt;ffffffff80209056&gt;] _stext+0x56/0x130
[    1.893848]  [&lt;ffffffff80274932&gt;] ? register_irq_proc+0xae/0xca
[    1.893848]  [&lt;ffffffff802f0000&gt;] ? proc_pid_lookup+0xb4/0x18b
[    1.893848]  [&lt;ffffffff8087f975&gt;] kernel_init+0x132/0x18b
[    1.893848]  [&lt;ffffffff8020d17a&gt;] child_rip+0xa/0x20
[    1.893848]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.893848]  [&lt;ffffffff8087f843&gt;] ? kernel_init+0x0/0x18b
[    1.893848]  [&lt;ffffffff8020d170&gt;] ? child_rip+0x0/0x20
[    1.893848] ---[ end trace 7150b3b86da74e1f ]---

Signed-off-by: Sage Weil &lt;sage@newdream.net&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>
The umem driver issues two warnings on boot, due to blk_plug_device() and
blk_remove_plug() being called without q-&gt;queue_lock held.  Starting with
e48ec690 (block: extend queue_flag bitops), the queue_flag_* functions
warn if q-&gt;queue_lock doesn't appear to be locked.  In fact, q-&gt;queue_lock
is NULL (though that apparently isn't otherwise a problem as the driver is
using card-&gt;lock for everything).

Although blk_init_queue() with take a request_fn_proc and spinlock_t*,
there isn't a corresponding init helper that takes a make_request_fn.
Setting queue_lock to &amp;card-&gt;lock explicitly seems to work fine for me.
The warning goes away and the device appears to behave.

[    1.531881] v2.3 : Micro Memory(tm) PCI memory board block driver
[    1.538136] umem 0000:02:01.0: PCI INT A -&gt; GSI 20 (level, low) -&gt; IRQ 20
[    1.545018] umem 0000:02:01.0: Micro Memory(tm) controller found (PCI Mem Module (Battery Backup))
[    1.554176] umem 0000:02:01.0: CSR 0xfc9ffc00 -&gt; 0xffffc200013d0c00 (0x100)
[    1.561279] umem 0000:02:01.0: Size 1048576 KB, Battery 1 Disabled (FAILURE), Battery 2 Disabled (FAILURE)
[    1.571114] umem 0000:02:01.0: Window size 16777216 bytes, IRQ 20
[    1.577304] umem 0000:02:01.0: memory NOT initialized. Consider over-writing whole device.
[    1.585989]  umema:&lt;4&gt;------------[ cut here ]------------
[    1.591775] WARNING: at include/linux/blkdev.h:492 blk_plug_device+0x6d/0x106()
[    1.592025] Hardware name: H8SSL
[    1.592025] Modules linked in:
[    1.592025] Pid: 1, comm: swapper Not tainted 2.6.29 #8
[    1.592025] Call Trace:
[    1.592025]  [&lt;ffffffff8023c994&gt;] warn_slowpath+0xd3/0xf2
[    1.592025]  [&lt;ffffffff8025a5b5&gt;] ? save_trace+0x3f/0x9b
[    1.592025]  [&lt;ffffffff8025a68b&gt;] ? add_lock_to_list+0x7a/0xba
[    1.592025]  [&lt;ffffffff8025e609&gt;] ? validate_chain+0xb3b/0xce8
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff8025ef04&gt;] ? __lock_acquire+0x74e/0x7b9
[    1.592025]  [&lt;ffffffff8025a70e&gt;] ? get_lock_stats+0x34/0x5e
[    1.592025]  [&lt;ffffffff8025a746&gt;] ? put_lock_stats+0xe/0x27
[    1.592025]  [&lt;ffffffff80441556&gt;] ? mm_make_request+0x27/0x59
[    1.592025]  [&lt;ffffffff803ad165&gt;] blk_plug_device+0x6d/0x106
[    1.592025]  [&lt;ffffffff80441575&gt;] mm_make_request+0x46/0x59
[    1.592025]  [&lt;ffffffff803ac2d9&gt;] generic_make_request+0x335/0x3cf
[    1.592025]  [&lt;ffffffff8027fcc7&gt;] ? mempool_alloc_slab+0x11/0x13
[    1.592025]  [&lt;ffffffff8027fdce&gt;] ? mempool_alloc+0x45/0x101
[    1.592025]  [&lt;ffffffff8025a746&gt;] ? put_lock_stats+0xe/0x27
[    1.592025]  [&lt;ffffffff803adda5&gt;] submit_bio+0x10a/0x119
[    1.592025]  [&lt;ffffffff802c8d00&gt;] submit_bh+0xe5/0x109
[    1.592025]  [&lt;ffffffff802cbf43&gt;] block_read_full_page+0x2aa/0x2cb
[    1.592025]  [&lt;ffffffff802cf4c4&gt;] ? blkdev_get_block+0x0/0x4c
[    1.592025]  [&lt;ffffffff805c90a8&gt;] ? _spin_unlock_irq+0x36/0x51
[    1.592025]  [&lt;ffffffff80286836&gt;] ? __lru_cache_add+0x92/0xb2
[    1.592025]  [&lt;ffffffff802cf008&gt;] blkdev_readpage+0x13/0x15
[    1.592025]  [&lt;ffffffff8027de06&gt;] read_cache_page_async+0x90/0x134
[    1.592025]  [&lt;ffffffff802ceff5&gt;] ? blkdev_readpage+0x0/0x15
[    1.592025]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.592025]  [&lt;ffffffff8027deb8&gt;] read_cache_page+0xe/0x45
[    1.592025]  [&lt;ffffffff802f5170&gt;] read_dev_sector+0x2e/0x93
[    1.592025]  [&lt;ffffffff802f5f44&gt;] adfspart_check_ICS+0x28/0x16c
[    1.592025]  [&lt;ffffffff8025d427&gt;] ? trace_hardirqs_on+0xd/0xf
[    1.592025]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.592025]  [&lt;ffffffff802f59c5&gt;] rescan_partitions+0x168/0x2fb
[    1.592025]  [&lt;ffffffff802ceae9&gt;] __blkdev_get+0x259/0x336
[    1.592025]  [&lt;ffffffff803ca1e2&gt;] ? kobject_put+0x47/0x4b
[    1.592025]  [&lt;ffffffff802cebd1&gt;] blkdev_get+0xb/0xd
[    1.592025]  [&lt;ffffffff802f5773&gt;] register_disk+0xc4/0x12b
[    1.592025]  [&lt;ffffffff803b2a7b&gt;] add_disk+0xc3/0x12d
[    1.592025]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.592025]  [&lt;ffffffff808a1e73&gt;] mm_init+0x129/0x1a5
[    1.592025]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.592025]  [&lt;ffffffff80209056&gt;] _stext+0x56/0x130
[    1.592025]  [&lt;ffffffff80274932&gt;] ? register_irq_proc+0xae/0xca
[    1.592025]  [&lt;ffffffff802f0000&gt;] ? proc_pid_lookup+0xb4/0x18b
[    1.592025]  [&lt;ffffffff8087f975&gt;] kernel_init+0x132/0x18b
[    1.592025]  [&lt;ffffffff8020d17a&gt;] child_rip+0xa/0x20
[    1.592025]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.592025]  [&lt;ffffffff8087f843&gt;] ? kernel_init+0x0/0x18b
[    1.592025]  [&lt;ffffffff8020d170&gt;] ? child_rip+0x0/0x20
[    1.592025] ---[ end trace 7150b3b86da74e1e ]---
[    1.889858] ------------[ cut here ]------------[ve_plug+0x5f/0x91()
[    1.893848] Hardware name: H8SSL
[    1.893848] Modules linked in:
[    1.893848] Pid: 1, comm: swapper Tainted: G        W  2.6.29 #8
[    1.893848] Call Trace:
[    1.893848]  [&lt;ffffffff8023c994&gt;] warn_slowpath+0xd3/0xf2
[    1.893848]  [&lt;ffffffff805c8411&gt;] ? trace_hardirqs_on_thunk+0x3a/0x3f
[    1.893848]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.893848]  [&lt;ffffffff80254245&gt;] ? __atomic_notifier_call_chain+0x0/0xb2
[    1.893848]  [&lt;ffffffff805c90a3&gt;] ? _spin_unlock_irq+0x31/0x51
[    1.893848]  [&lt;ffffffff805c90bf&gt;] ? _spin_unlock_irq+0x4d/0x51
[    1.893848]  [&lt;ffffffff8044157d&gt;] ? mm_make_request+0x4e/0x59
[    1.893848]  [&lt;ffffffff8025a70e&gt;] ? get_lock_stats+0x34/0x5e
[    1.893848]  [&lt;ffffffff8025a75d&gt;] ? put_lock_stats+0x25/0x27
[    1.893848]  [&lt;ffffffff80441504&gt;] ? mm_unplug_device+0x25/0x50
[    1.893848]  [&lt;ffffffff803acf23&gt;] blk_remove_plug+0x5f/0x91
[    1.893848]  [&lt;ffffffff8044150f&gt;] mm_unplug_device+0x30/0x50
[    1.893848]  [&lt;ffffffff803ab74a&gt;] blk_unplug+0x78/0x7d
[    1.893848]  [&lt;ffffffff803ab75c&gt;] blk_backing_dev_unplug+0xd/0xf
[    1.893848]  [&lt;ffffffff802c853c&gt;] block_sync_page+0x4a/0x4c
[    1.893848]  [&lt;ffffffff8027da1c&gt;] sync_page+0x44/0x4d
[    1.893848]  [&lt;ffffffff805c66fd&gt;] __wait_on_bit_lock+0x42/0x8a
[    1.893848]  [&lt;ffffffff8027d9d8&gt;] ? sync_page+0x0/0x4d
[    1.893848]  [&lt;ffffffff8027d9c4&gt;] __lock_page+0x64/0x6b
[    1.893848]  [&lt;ffffffff802508db&gt;] ? wake_bit_function+0x0/0x2a
[    1.893848]  [&lt;ffffffff8027de4a&gt;] read_cache_page_async+0xd4/0x134
[    1.893848]  [&lt;ffffffff802ceff5&gt;] ? blkdev_readpage+0x0/0x15
[    1.893848]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.893848]  [&lt;ffffffff8027deb8&gt;] read_cache_page+0xe/0x45
[    1.893848]  [&lt;ffffffff802f5170&gt;] read_dev_sector+0x2e/0x93
[    1.893848]  [&lt;ffffffff802f5f44&gt;] adfspart_check_ICS+0x28/0x16c
[    1.893848]  [&lt;ffffffff8025d427&gt;] ? trace_hardirqs_on+0xd/0xf
[    1.893848]  [&lt;ffffffff802f5f1c&gt;] ? adfspart_check_ICS+0x0/0x16c
[    1.893848]  [&lt;ffffffff802f59c5&gt;] rescan_partitions+0x168/0x2fb
[    1.893848]  [&lt;ffffffff802ceae9&gt;] __blkdev_get+0x259/0x336
[    1.893848]  [&lt;ffffffff803ca1e2&gt;] ? kobject_put+0x47/0x4b
[    1.893848]  [&lt;ffffffff802cebd1&gt;] blkdev_get+0xb/0xd
[    1.893848]  [&lt;ffffffff802f5773&gt;] register_disk+0xc4/0x12b
[    1.893848]  [&lt;ffffffff803b2a7b&gt;] add_disk+0xc3/0x12d
[    1.893848]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.893848]  [&lt;ffffffff808a1e73&gt;] mm_init+0x129/0x1a5
[    1.893848]  [&lt;ffffffff808a1d4a&gt;] ? mm_init+0x0/0x1a5
[    1.893848]  [&lt;ffffffff80209056&gt;] _stext+0x56/0x130
[    1.893848]  [&lt;ffffffff80274932&gt;] ? register_irq_proc+0xae/0xca
[    1.893848]  [&lt;ffffffff802f0000&gt;] ? proc_pid_lookup+0xb4/0x18b
[    1.893848]  [&lt;ffffffff8087f975&gt;] kernel_init+0x132/0x18b
[    1.893848]  [&lt;ffffffff8020d17a&gt;] child_rip+0xa/0x20
[    1.893848]  [&lt;ffffffff8020cb40&gt;] ? restore_args+0x0/0x30
[    1.893848]  [&lt;ffffffff8087f843&gt;] ? kernel_init+0x0/0x18b
[    1.893848]  [&lt;ffffffff8020d170&gt;] ? child_rip+0x0/0x20
[    1.893848] ---[ end trace 7150b3b86da74e1f ]---

Signed-off-by: Sage Weil &lt;sage@newdream.net&gt;
Signed-off-by: Jens Axboe &lt;jens.axboe@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)</title>
<updated>2009-04-07T15:31:11+00:00</updated>
<author>
<name>Yang Hongyang</name>
<email>yanghy@cn.fujitsu.com</email>
</author>
<published>2009-04-07T02:01:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=284901a90a9e0b812ca3f5f852cbbfb60d10249d'/>
<id>284901a90a9e0b812ca3f5f852cbbfb60d10249d</id>
<content type='text'>
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)

Signed-off-by: Yang Hongyang&lt;yanghy@cn.fujitsu.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>
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)

Signed-off-by: Yang Hongyang&lt;yanghy@cn.fujitsu.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>
</feed>
