public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <1275664778.4596.1.camel@maxim-laptop>]
[parent not found: <Pine.LNX.4.44L0.1006041052570.1794-100000@iolanthe.rowland.org>]
[parent not found: <1275650416.3403.5.camel@maxim-laptop>]
[parent not found: <201005182143.28004.rjw@sisk.pl>]
[parent not found: <Pine.LNX.4.44L0.1005162219330.24400-100000@netrider.rowland.org>]
[parent not found: <4BF06489.1050200@crca.org.au>]
[parent not found: <Pine.LNX.4.44L0.1005142231390.11498-100000@netrider.rowland.org>]
[parent not found: <Pine.LNX.4.44L0.1005142235580.11498-100000@netrider.rowland.org>]
[parent not found: <4BEC8173.4070500@crca.org.au>]
[parent not found: <AANLkTimW3wLEt-DIRirHic1ZN1Z0k1t3TavwaCxTh_QL@mail.gmail.com>]
[parent not found: <AANLkTikH7DvizJ9340SiksoIWU5KU2n-OCqWc4f_-z9v@mail.gmail.com>]
[parent not found: <201003040123.13617.rjw@sisk.pl>]
[parent not found: <20100303215056.GB2579@ucw.cz>]
[parent not found: <20100301063508.GA1455@ucw.cz>]
[parent not found: <20100224191213.GH1025@kernel.dk>]
[parent not found: <20100223221635.GP1025@kernel.dk>]
[parent not found: <20100223155803.GN1025@kernel.dk>]
[parent not found: <20100223123321.GA1025@kernel.dk>]
[parent not found: <201002152204.04148.rjw@sisk.pl>]
* Is it supposed to be ok to call del_gendisk while userspace is frozen?
@ 2010-02-13 13:29 Maxim Levitsky
  2010-02-15 16:00 ` Maxim Levitsky
       [not found] ` <1266249634.10662.6.camel@maxim-laptop>
  0 siblings, 2 replies; 52+ messages in thread
From: Maxim Levitsky @ 2010-02-13 13:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-pm, Andrew Morton

I noticed that currently calling del_gendisk leads to sure deadlock if
attemped from .suspend or .resume functions.

Something like that:

[<ffffffff8106620a>] ? prepare_to_wait+0x2a/0x90
[<ffffffff810790bd>] ? trace_hardirqs_on+0xd/0x10
[<ffffffff8140db12>] ? _raw_spin_unlock_irqrestore+0x42/0x80
[<ffffffff8112a390>] ? bdi_sched_wait+0x0/0x20
[<ffffffff8112a39e>] bdi_sched_wait+0xe/0x20
[<ffffffff8140af6f>] __wait_on_bit+0x5f/0x90
[<ffffffff8112a390>] ? bdi_sched_wait+0x0/0x20
[<ffffffff8140b018>] out_of_line_wait_on_bit+0x78/0x90
[<ffffffff81065fd0>] ? wake_bit_function+0x0/0x40
[<ffffffff8112a2d3>] ? bdi_queue_work+0xa3/0xe0
[<ffffffff8112a37f>] bdi_sync_writeback+0x6f/0x80
[<ffffffff8112a3d2>] sync_inodes_sb+0x22/0x120
[<ffffffff8112f1d2>] __sync_filesystem+0x82/0x90
[<ffffffff8112f3db>] sync_filesystem+0x4b/0x70
[<ffffffff811391de>] fsync_bdev+0x2e/0x60
[<ffffffff812226be>] invalidate_partition+0x2e/0x50
[<ffffffff8116b92f>] del_gendisk+0x3f/0x140
[<ffffffffa00c0233>] mmc_blk_remove+0x33/0x60 [mmc_block]
[<ffffffff81338977>] mmc_bus_remove+0x17/0x20
[<ffffffff812ce746>] __device_release_driver+0x66/0xc0
[<ffffffff812ce89d>] device_release_driver+0x2d/0x40
[<ffffffff812cd9b5>] bus_remove_device+0xb5/0x120
[<ffffffff812cb46f>] device_del+0x12f/0x1a0
[<ffffffff81338a5b>] mmc_remove_card+0x5b/0x90
[<ffffffff8133ac27>] mmc_sd_remove+0x27/0x50
[<ffffffff81337d8c>] mmc_resume_host+0x10c/0x140
[<ffffffffa00850e9>] sdhci_resume_host+0x69/0xa0 [sdhci]
[<ffffffffa0bdc39e>] sdhci_pci_resume+0x8e/0xb0 [sdhci_pci]

bdi_queue_work seems to be the problem.

Some device drivers need to remove their cards logically in .suspend,
because the card is removable, and can be changed while system is
suspended.

Best regards,
Maxim Levitsky

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2010-06-04 17:52 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.44L0.1003032142580.6963-100000@netrider.rowland.org>
2010-03-04 19:26 ` Is it supposed to be ok to call del_gendisk while userspace is frozen? Rafael J. Wysocki
     [not found] ` <201003042026.30303.rjw@sisk.pl>
2010-03-04 19:36   ` Alan Stern
2010-03-04 20:04     ` Rafael J. Wysocki
2010-03-04 20:15   ` Pavel Machek
2010-04-22 23:40     ` Matt Reimer
     [not found]     ` <y2yf383264b1004221640rd1fca614zfa15d7e7984ab3ba@mail.gmail.com>
2010-04-23  5:17       ` Rafael J. Wysocki
     [not found]       ` <201004230717.07086.rjw@sisk.pl>
2010-05-11 23:55         ` Matt Reimer
     [not found] <1275664778.4596.1.camel@maxim-laptop>
2010-06-04 17:52 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.1006041052570.1794-100000@iolanthe.rowland.org>
2010-06-04 15:19 ` Maxim Levitsky
     [not found] <1275650416.3403.5.camel@maxim-laptop>
2010-06-04 14:59 ` Alan Stern
     [not found] <201005182143.28004.rjw@sisk.pl>
2010-05-18 20:06 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.1005162219330.24400-100000@netrider.rowland.org>
2010-05-17  7:45 ` Nigel Cunningham
     [not found] ` <4BF0F3FF.2010603@crca.org.au>
2010-05-17 20:35   ` Rafael J. Wysocki
     [not found]   ` <201005172235.37824.rjw@sisk.pl>
2010-05-17 22:51     ` Nigel Cunningham
     [not found]     ` <4BF1C86B.8000203@crca.org.au>
2010-05-18 19:43       ` Rafael J. Wysocki
2010-05-24 19:02       ` Pavel Machek
     [not found]       ` <20100524190206.GL1292@ucw.cz>
2010-05-24 21:21         ` Nigel Cunningham
     [not found] <4BF06489.1050200@crca.org.au>
2010-05-17  2:22 ` Alan Stern
     [not found] <Pine.LNX.4.44L0.1005142231390.11498-100000@netrider.rowland.org>
2010-05-15 20:30 ` Rafael J. Wysocki
     [not found] ` <201005152230.10230.rjw@sisk.pl>
2010-05-16  7:49   ` Nigel Cunningham
     [not found]   ` <4BEFA375.7030404@crca.org.au>
2010-05-16 19:38     ` Rafael J. Wysocki
     [not found]     ` <201005162138.07105.rjw@sisk.pl>
2010-05-16 21:32       ` Nigel Cunningham
     [not found] <Pine.LNX.4.44L0.1005142235580.11498-100000@netrider.rowland.org>
2010-05-15  2:53 ` Nigel Cunningham
     [not found] ` <4BEE0CC5.60804@crca.org.au>
2010-05-16 19:35   ` Rafael J. Wysocki
     [not found] <4BEC8173.4070500@crca.org.au>
2010-05-15  2:37 ` Alan Stern
     [not found] <AANLkTimW3wLEt-DIRirHic1ZN1Z0k1t3TavwaCxTh_QL@mail.gmail.com>
2010-05-13 21:54 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1005131752160.1731-100000@iolanthe.rowland.org>
2010-05-13 22:20   ` Matt Reimer
     [not found]   ` <AANLkTimBxoCCeT_ns30JTIGKqgkiRIvKTf4LfE3mopkS@mail.gmail.com>
2010-05-13 22:47     ` Nigel Cunningham
2010-05-15  2:32     ` Alan Stern
     [not found] <AANLkTikH7DvizJ9340SiksoIWU5KU2n-OCqWc4f_-z9v@mail.gmail.com>
2010-05-12 14:50 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1005121048420.1962-100000@iolanthe.rowland.org>
2010-05-13 21:44   ` Matt Reimer
     [not found] <201003040123.13617.rjw@sisk.pl>
2010-03-04  2:48 ` Alan Stern
     [not found] <20100303215056.GB2579@ucw.cz>
2010-03-03 22:23 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1003031720530.1380-100000@iolanthe.rowland.org>
2010-03-04  0:23   ` Rafael J. Wysocki
2010-03-04 13:53   ` Pavel Machek
     [not found]   ` <20100304135337.GC12191@atrey.karlin.mff.cuni.cz>
2010-06-04 11:20     ` Maxim Levitsky
     [not found] <20100301063508.GA1455@ucw.cz>
2010-03-01 15:23 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1003011021440.1645-100000@iolanthe.rowland.org>
2010-03-03 21:50   ` Pavel Machek
     [not found] <20100224191213.GH1025@kernel.dk>
2010-02-24 20:19 ` Alan Stern
     [not found] <20100223221635.GP1025@kernel.dk>
2010-02-24 15:59 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1002241051470.2436-100000@iolanthe.rowland.org>
2010-02-24 19:12   ` Jens Axboe
     [not found] <20100223155803.GN1025@kernel.dk>
2010-02-23 16:33 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1002231115510.1308-100000@iolanthe.rowland.org>
2010-02-23 22:16   ` Jens Axboe
     [not found] <20100223123321.GA1025@kernel.dk>
2010-02-23 15:29 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1002231016500.1507-100000@iolanthe.rowland.org>
2010-02-23 15:58   ` Jens Axboe
2010-03-01  6:35   ` Pavel Machek
     [not found] <201002152204.04148.rjw@sisk.pl>
2010-02-16 16:27 ` Alan Stern
     [not found] ` <Pine.LNX.4.44L0.1002161126340.1281-100000@iolanthe.rowland.org>
2010-02-20 22:22   ` Maxim Levitsky
2010-02-23 12:33   ` Jens Axboe
2010-02-13 13:29 Maxim Levitsky
2010-02-15 16:00 ` Maxim Levitsky
     [not found] ` <1266249634.10662.6.camel@maxim-laptop>
2010-02-15 21:04   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox