Brian King
8a4236a2c7
scsi: ipr: Fix async error WARN_ON
Commit afc3f83cb4a5 ("scsi: ipr: Add asynchronous error notification")
introduced the warn on shown below. To fix this, rather than attempting
to send the KOBJ_CHANGE uevent from interrupt context, which is what is
causing the WARN_ON, just wake the ipr worker thread which will send a
KOBJ_CHANGE uevent.
[ 142.278120] WARNING: CPU: 15 PID: 0 at kernel/softirq.c:161 __local_bh_enable_ip+0x7c/0xd0
[ 142.278124] Modules linked in: ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter ses enclosure scsi_transport_sas sg pseries_rng nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sr_mod sd_mod cdrom ipr libata ibmvscsi scsi_transport_srp ibmveth dm_mirror dm_region_hash dm_log dm_mod
[ 142.278208] CPU: 15 PID: 0 Comm: swapper/15 Not tainted 4.8.0.ipr+ #21
[ 142.278213] task: c00000010cf24480 task.stack: c00000010cfec000
[ 142.278217] NIP: c0000000000c0c7c LR: c000000000881778 CTR: c0000000003c5bf0
[ 142.278221] REGS: c00000010cfef080 TRAP: 0700 Not tainted (4.8.0.ipr+)
[ 142.278224] MSR: 8000000000029033 <SF,EE,ME,IR,DR,RI,LE> CR: 28008022 XER: 2000000f
[ 142.278236] CFAR: c0000000000c0c20 SOFTE: 0
GPR00: c000000000706c78 c00000010cfef300 c000000000f91d00 c000000000706c78
GPR04: 0000000000000200 c000000000f7bc80 0000000000000000 00000000024000c0
GPR08: 0000000000000000 0000000000000001 c000000000ee1d00 c000000000a9bdd0
GPR12: c0000000003c5bf0 c00000000eb22d00 c000000100ca3880 c00000020ed38400
GPR16: 0000000000000000 0000000000000000 c000000100940508 0000000000000000
GPR20: 0000000000000000 0000000000000000 0000000000000000 00000000024000c0
GPR24: c0000000004588e0 c00000010863bd00 c00000010863bd00 c0000000013773f8
GPR28: c000000000f7bc80 0000000000000000 ffffffffffffffff c000000000f7bcd8
[ 142.278290] NIP [c0000000000c0c7c] __local_bh_enable_ip+0x7c/0xd0
[ 142.278296] LR [c000000000881778] _raw_spin_unlock_bh+0x38/0x60
[ 142.278299] Call Trace:
[ 142.278303] [c00000010cfef300] [c000000000f7bc80] init_net+0x0/0x1900 (unreliable)
[ 142.278310] [c00000010cfef320] [c000000000706c78] peernet2id+0x58/0x80
[ 142.278316] [c00000010cfef370] [c00000000075caec] netlink_broadcast_filtered+0x30c/0x550
[ 142.278323] [c00000010cfef430] [c000000000459078] kobject_uevent_env+0x588/0x780
[ 142.278331] [c00000010cfef510] [d000000003163a6c] ipr_process_error+0x11c/0x240 [ipr]
[ 142.278337] [c00000010cfef5c0] [d000000003152298] ipr_fail_all_ops+0x108/0x220 [ipr]
[ 142.278343] [c00000010cfef670] [d0000000031643f8] ipr_reset_restore_cfg_space+0xa8/0x240 [ipr]
[ 142.278350] [c00000010cfef6f0] [d000000003158a00] ipr_reset_ioa_job+0x80/0xe0 [ipr]
[ 142.278356] [c00000010cfef720] [d000000003153f78] ipr_reset_timer_done+0xa8/0xe0 [ipr]
[ 142.278363] [c00000010cfef770] [c000000000149c88] call_timer_fn+0x58/0x1c0
[ 142.278368] [c00000010cfef800] [c000000000149f60] expire_timers+0x140/0x200
[ 142.278373] [c00000010cfef870] [c00000000014a0e8] run_timer_softirq+0xc8/0x230
[ 142.278379] [c00000010cfef900] [c0000000000c0844] __do_softirq+0x164/0x3c0
[ 142.278384] [c00000010cfef9f0] [c0000000000c0f18] irq_exit+0x1a8/0x1c0
[ 142.278389] [c00000010cfefa20] [c000000000020b54] timer_interrupt+0xa4/0xe0
[ 142.278394] [c00000010cfefa50] [c000000000002414] decrementer_common+0x114/0x180
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-10-14 16:26:31 -04:00
..
2016-10-07 09:28:53 -07:00
2016-02-23 21:27:02 -05:00
2016-08-25 23:39:25 -04:00
2016-09-26 21:02:51 -04:00
2016-04-15 16:53:14 -04:00
2016-08-30 22:26:15 -04:00
2016-09-02 06:09:16 -04:00
2016-09-09 07:11:07 -04:00
2016-07-12 23:16:31 -04:00
2016-09-14 13:19:15 -04:00
2016-09-19 01:37:32 -04:00
2016-09-14 12:47:42 -04:00
2016-09-26 20:42:38 -04:00
2016-08-25 22:28:17 -04:00
2016-10-07 09:28:53 -07:00
2016-07-20 20:49:17 -04:00
2016-09-14 12:54:18 -04:00
2016-09-19 19:50:33 -04:00
2016-09-19 11:51:59 -04:00
2016-05-23 17:53:39 -07:00
2016-08-18 22:35:17 -04:00
2016-07-27 14:48:37 -07:00
2016-09-26 20:35:51 -04:00
2016-10-07 09:28:53 -07:00
2016-10-07 09:28:53 -07:00
2016-09-26 21:15:55 -04:00
2016-07-20 17:38:35 -06:00
2015-05-31 18:06:28 -07:00
2016-09-26 21:10:45 -04:00
2016-09-15 09:41:56 -04:00
2016-09-02 06:06:43 -04:00
2016-09-19 11:55:26 -04:00
2016-07-12 23:16:31 -04:00
2016-09-14 13:19:29 -04:00
2016-09-21 16:28:57 -04:00
2015-10-07 10:24:48 -07:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:04:39 -07:00
2016-01-08 12:51:03 -05:00
2015-04-27 10:05:55 -07:00
2016-07-13 22:33:23 -04:00
2016-07-13 22:33:23 -04:00
2015-08-07 15:03:42 +02:00
2013-11-26 11:09:07 +01:00
2014-10-20 16:21:33 +02:00
2014-10-20 16:21:33 +02:00
2015-12-03 09:32:33 -08:00
2015-05-31 18:06:28 -07:00
2016-02-23 21:27:02 -05:00
2015-04-09 18:08:31 -07:00
2015-05-31 18:06:28 -07:00
2015-05-31 18:06:28 -07:00
2015-04-17 10:13:56 -07:00
2016-04-11 16:57:09 -04:00
2015-11-25 22:08:55 -05:00
2015-11-25 22:08:52 -05:00
2015-02-02 09:57:45 -08:00
2014-10-20 16:21:33 +02:00
2015-04-14 09:50:27 -07:00
2016-08-16 00:49:32 -04:00
2015-02-02 09:57:46 -08:00
2016-04-11 16:57:09 -04:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2014-11-24 14:45:27 +01:00
2015-11-09 17:11:57 -08:00
2014-11-24 16:13:16 +01:00
2016-02-23 21:27:02 -05:00
2015-11-09 16:32:14 -08:00
2016-04-11 16:57:09 -04:00
2016-04-11 16:57:09 -04:00
2016-02-25 21:16:49 -05:00
2016-02-25 21:16:49 -05:00
2013-11-26 11:09:07 +01:00
2016-10-07 09:28:53 -07:00
2016-09-14 14:19:31 -04:00
2016-09-21 16:42:05 -04:00
2016-09-21 16:42:05 -04:00
2015-08-12 13:14:57 -07:00
2015-08-12 13:14:57 -07:00
2016-02-25 21:10:53 -05:00
2015-11-20 11:39:03 -05:00
2016-10-14 16:26:31 -04:00
2016-09-19 11:57:33 -04:00
2015-06-02 17:24:54 -07:00
2016-05-16 11:14:29 -04:00
2016-05-19 11:36:49 -07:00
2016-01-27 20:36:10 +08:00
2014-10-20 16:21:33 +02:00
2016-09-26 20:49:25 -04:00
2016-01-27 20:36:10 +08:00
2016-04-11 16:57:09 -04:00
2016-02-05 16:29:28 -06:00
2014-10-20 16:21:33 +02:00
2016-04-11 16:57:09 -04:00
2016-09-26 20:49:25 -04:00
2015-08-26 07:23:04 -07:00
2014-03-27 08:26:31 -07:00
2016-02-05 16:29:28 -06:00
2014-10-20 16:21:33 +02:00
2016-03-05 17:07:46 -05:00
2014-11-24 14:45:27 +01:00
2014-07-17 22:07:35 +02:00
2015-05-31 18:06:28 -07:00
2016-09-14 14:11:12 -04:00
2016-09-14 14:11:12 -04:00
2015-05-31 18:06:28 -07:00
2014-11-24 20:01:28 +01:00
2016-09-04 01:28:07 -04:00
2016-02-23 21:27:02 -05:00
2015-05-31 18:06:28 -07:00
2016-04-30 09:25:26 -07:00
2015-05-31 18:06:28 -07:00
2016-03-01 20:06:49 -05:00
2016-04-04 12:07:42 -04:00
2016-09-15 09:51:14 -04:00
2016-08-16 00:58:13 -04:00
2016-10-11 17:56:51 -04:00
2016-06-18 11:59:01 -07:00
2014-11-12 11:16:12 +01:00
2016-09-15 08:42:03 -06:00
2015-02-04 08:00:24 -08:00
2014-11-12 11:16:05 +01:00
2014-04-24 13:44:54 -04:00
2016-02-19 10:52:45 -05:00
2016-10-07 09:28:53 -07:00
2016-04-11 16:57:09 -04:00
2016-03-14 21:05:04 -04:00
2016-10-11 18:02:09 -04:00
2014-06-06 16:08:16 -07:00
2016-04-15 16:53:07 -04:00
2016-04-11 16:57:09 -04:00
2016-04-11 16:57:09 -04:00
2016-04-11 16:57:09 -04:00
2016-08-18 22:23:20 -04:00
2015-08-07 14:28:45 +02:00
2015-07-14 13:20:09 -04:00
2016-09-26 20:58:42 -04:00
2014-11-12 11:15:54 +01:00
2016-09-15 09:51:14 -04:00
2016-09-15 09:51:14 -04:00
2016-09-15 09:51:14 -04:00
2016-04-11 16:57:09 -04:00
2016-08-18 22:22:19 -04:00
2016-08-30 22:18:59 -04:00
2014-10-20 16:21:33 +02:00
2016-02-23 21:27:02 -05:00
2014-10-20 16:21:33 +02:00
2015-01-20 19:43:24 +01:00
2014-07-17 22:07:39 +02:00
2016-09-04 01:28:08 -04:00
2014-11-12 11:15:57 +01:00
2016-04-25 22:08:16 -04:00
2015-11-18 11:59:09 -05:00
2016-02-23 21:27:02 -05:00
2016-07-12 23:16:31 -04:00
2014-05-28 12:16:28 +02:00
2016-04-11 16:57:09 -04:00
2014-11-20 09:11:15 +01:00
2015-08-10 23:07:05 -04:00
2014-10-20 16:21:33 +02:00
2015-05-31 18:06:28 -07:00
2016-10-07 09:28:53 -07:00
2016-07-12 23:16:31 -04:00
2016-07-12 23:16:31 -04:00
2015-02-02 09:57:46 -08:00
2016-09-01 17:52:01 -07:00
2015-05-31 18:06:28 -07:00
2015-09-08 18:03:49 +01:00
2013-11-26 11:09:07 +01:00