On Mon, 5 Dec 2011 10:32:36 -0800 Tejun Heo wrote: > On Mon, Dec 05, 2011 at 08:21:14PM +0300, Sergei Trofimovich wrote: > > Same here on 3.2.0-rc4-00077-g5983fe2 > > > > 'swapper' cmd looks suspicious. > > [ CCing someone who is familar with block layer, sorry in advance ] > > > > [ 3.792015] floppy0: no floppy controllers found > > [ 3.792274] ------------[ cut here ]------------ > > [ 3.792434] WARNING: at drivers/block/floppy.c:2929 do_fd_request+0xbf/0xd0() > > [ 3.792587] Hardware name: To Be Filled By O.E.M. > > [ 3.792738] VFS: do_fd_request called on non-open device > > [ 3.792889] Modules linked in: > > [ 3.793008] Pid: 1, comm: swapper Not tainted 3.2.0-rc4-00077-g5983fe2 #2 > > [ 3.793008] Call Trace: > > [ 3.793008] [] warn_slowpath_common+0x7a/0xb0 > > [ 3.793008] [] warn_slowpath_fmt+0x41/0x50 > > [ 3.793008] [] do_fd_request+0xbf/0xd0 > > [ 3.793008] [] blk_drain_queue+0x65/0x80 > > [ 3.793008] [] blk_cleanup_queue+0xe3/0x1a0 > > [ 3.793008] [] floppy_init+0xdeb/0xe28 > > [ 3.793008] [] ? daring+0x6b/0x6b > > [ 3.793008] [] do_one_initcall+0x3f/0x170 > > [ 3.793008] [] kernel_init+0x9d/0x11e > > [ 3.793008] [] ? schedule_tail+0x22/0xa0 > > [ 3.793008] [] kernel_thread_helper+0x4/0x10 > > [ 3.793008] [] ? start_kernel+0x2be/0x2be > > [ 3.793008] [] ? gs_change+0xb/0xb > > [ 3.793008] ---[ end trace c5807061655fec8c ]--- > > Does the following patch make the warning go away? It does. Thank you! Tried to boot only once with patch though (is bug deterministic?) > Thanks. > > block/blk-core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/block/blk-core.c b/block/blk-core.c > index ea70e6c..653cc22 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -366,7 +366,8 @@ void blk_drain_queue(struct request_queue *q, bool drain_all) > if (drain_all) > blk_throtl_drain(q); > > - __blk_run_queue(q); > + if (!list_empty(&q->queue_head)) > + __blk_run_queue(q); > > if (drain_all) > nr_rqs = q->rq.count[0] + q->rq.count[1]; -- Sergei