You are not logged in.

#1 2011-12-07 18:44:08

xCrucialDudex
Member
Registered: 2007-08-19
Posts: 144

Notebook hangs if there's an app actively using external USB disk

...right before going into sleep mode.

I have this notebook and an external USB SATA drive hooked up to it. When I put the laptop into sleep mode, then resume its work, after a while I'll get a blank screen that essentially looks a lot like tty1, all black background and gray symbols all over the screen. Essentially, the message I get is the following:

Dec  7 11:29:18 localhost kernel: [67351.155834] ESI: f6447e80 EDI: f46b05f0 EBP: f15a7e58 ESP: f15a7e40
Dec  7 11:29:18 localhost kernel: [67351.155834]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Dec  7 11:29:18 localhost kernel: [67351.155834] Process transmission-gt (pid: 2302, ti=f15a6000 task=f1255a40 task.ti=f15a6000)
Dec  7 11:29:18 localhost kernel: [67351.155834] Stack:
Dec  7 11:29:18 localhost kernel: [67351.155834]  f15a7eac f46b05e0 f6447e80 f1255a40 f6447e80 f46b05f0 f15a7e6c c10d4f48
Dec  7 11:29:18 localhost kernel: [67351.155834]  00000010 f6447e80 f46b05e0 f15a7e84 c113be2c 00000000 efa3b930 ef1f4400
Dec  7 11:29:18 localhost kernel: [67351.155834]  00000000 f15a7e90 c113befa f1141600 f15a7eb4 f8046f1e f1141600 f804b3e4
Dec  7 11:29:18 localhost kernel: [67351.155834] Call Trace:
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c10d4f48>] account_page_dirtied+0x68/0x90
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c113be2c>] __set_page_dirty+0x3c/0xb0
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c113befa>] mark_buffer_dirty+0x5a/0x90
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<f8046f1e>] ext2_sync_super+0x6e/0xd0 [ext2]
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<f8046fd1>] ext2_sync_fs+0x51/0x60 [ext2]
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1157640>] ? dquot_get_dqblk+0x180/0x180
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c113a4ca>] __sync_filesystem+0x5a/0x80
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c113a539>] sync_filesystem+0x29/0x50
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c111656e>] generic_shutdown_super+0x2e/0xe0
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1116649>] kill_block_super+0x29/0x70
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c111693d>] deactivate_locked_super+0x3d/0x60
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c11171f7>] deactivate_super+0x47/0x60
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c112ecd7>] mntput_no_expire+0x87/0xd0
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c112ed38>] mntput+0x18/0x30
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1116154>] fput+0x134/0x1e0
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1112d14>] filp_close+0x54/0x80
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1112db4>] sys_close+0x74/0xc0
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c134c11f>] sysenter_do_call+0x12/0x28
Dec  7 11:29:18 localhost kernel: [67351.155834]  [<c1340000>] ? setup_local_APIC+0x2c9/0x3b8
Dec  7 11:29:18 localhost kernel: [67351.155834] Code: eb ce 8d 76 00 8d bc 27 00 00 00 00 55 89 e5 83 ec 18 89 5d f4 89 c3 89 e0 25 00 e0 ff ff 89 75 f8 89 7d fc 83 40 14 01 8b 43 14 
Dec  7 11:29:18 localhost [67351.155834]  8b 30 89 f7 c1 ff 1f 01 d6 89 45 f0 8b 45 08 11 cf 89 c2 c1 
Dec  7 11:29:18 localhost kernel: [67351.155834] EIP: [<c11cf02f>] __percpu_counter_add+0x1f/0xe0 SS:ESP 0068:f15a7e40
Dec  7 11:29:18 localhost kernel: [67351.155834] CR2: 00000000342da000
Dec  7 11:29:18 localhost kernel: [67351.155834] ---[ end trace a7afafe94ef537f4 ]---
Dec  7 11:29:18 localhost kernel: [67351.182781] note: transmission-gt[2302] exited with preempt_count 2

By playing around I learned that if I kill transmission and any app that actively uses the USB disk prior to the sleep mode, and then start them after resume is finished and the disk is mounted (I use GNOME 3 in fallback mode, so it automounts the disk) everything works fine.

Now, I could ignore those messages but it gets worse. Mostly laptop will hang at a random point in time after printing that wall of text on tty1. It might take hours, or even days before this happens. Sometimes I'll find transmission in a freezed state and I may survive a couple of sleep and resume cycles but I almost never will go as far as 4 days and more in a row. The laptop will hang eventually. And the only way to avoid this is to kill off apps that use external USB drive prior to going into sleep mode.

Any ideas what's going on and how to fix this?

% uname -a
Linux host 2.6.39-ARCH #1 SMP PREEMPT Tue Jun 7 05:49:02 UTC 2011 i686 Intel(R) Core(TM) Duo CPU T2250 @ 1.73GHz GenuineIntel GNU/Linux

Offline

#2 2011-12-08 06:54:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Notebook hangs if there's an app actively using external USB disk

Offline

#3 2011-12-08 20:59:04

xCrucialDudex
Member
Registered: 2007-08-19
Posts: 144

Re: Notebook hangs if there's an app actively using external USB disk

Thanks, however, my problem isn't speed, it's stability of the system.

Offline

Board footer

Powered by FluxBB