Bart Van Assche
035e9f4716
scsi: sbitmap: Silence a debug kernel warning triggered by sbitmap_put()
...
All sbitmap code uses implied preemption protection to update
sb->alloc_hint except sbitmap_put(). Using implied preemption protection is
safe since the value of sb->alloc_hint only affects performance of sbitmap
allocations but not their correctness. Change this_cpu_ptr() in
sbitmap_put() into raw_cpu_ptr() to suppress the following kernel warning
that appears with preemption debugging enabled (CONFIG_DEBUG_PREEMPT):
BUG: using smp_processor_id() in preemptible [00000000] code: scsi_eh_0/152
caller is debug_smp_processor_id+0x17/0x20
CPU: 1 PID: 152 Comm: scsi_eh_0 Tainted: G W 5.12.0-rc1-dbg+ #6
Call Trace:
show_stack+0x52/0x58
dump_stack+0xaf/0xf3
check_preemption_disabled+0xce/0xd0
debug_smp_processor_id+0x17/0x20
scsi_device_unbusy+0x13a/0x1c0 [scsi_mod]
scsi_finish_command+0x4d/0x290 [scsi_mod]
scsi_eh_flush_done_q+0x1e7/0x280 [scsi_mod]
ata_scsi_port_error_handler+0x592/0x750 [libata]
ata_scsi_error+0x1a0/0x1f0 [libata]
scsi_error_handler+0x19e/0x330 [scsi_mod]
kthread+0x222/0x250
ret_from_fork+0x1f/0x30
Link: https://lore.kernel.org/r/20210317032648.9080-1-bvanassche@acm.org
Fixes: c548e62bcf ("scsi: sbitmap: Move allocation hint into sbitmap")
Cc: Hannes Reinecke <hare@suse.de >
Cc: Omar Sandoval <osandov@fb.com >
Reviewed-by: Ming Lei <ming.lei@redhat.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
2021-03-18 22:39:30 -04:00
..
2021-02-24 14:32:15 -08:00
2021-02-16 12:09:52 +01:00
2021-02-22 09:45:23 -08:00
2021-02-09 12:26:40 +01:00
2021-02-16 14:47:46 -08:00
2021-02-24 10:25:37 -08:00
2021-02-15 11:43:32 +01:00
2021-02-15 21:28:53 +01:00
2021-02-24 10:35:29 -08:00
2021-02-22 10:27:48 -08:00
2021-02-08 12:53:34 +01:00
2021-02-05 15:24:59 +02:00
2021-02-23 15:05:10 -08:00
2021-02-12 14:00:07 +00:00
2021-02-17 14:08:17 +01:00
2021-02-21 14:44:44 -08:00
2021-02-07 17:49:11 +05:30
2021-02-22 09:27:18 -08:00
2021-02-08 13:23:42 +02:00
2021-02-22 13:29:55 -08:00
2021-02-25 10:17:31 -08:00
2021-02-25 09:56:08 -08:00
2021-02-15 12:36:27 -08:00
2021-02-15 18:28:30 +01:00
2021-02-26 15:49:51 -07:00
2021-02-26 09:41:04 -08:00
2021-02-08 08:33:16 -07:00
2021-03-04 17:36:59 -05:00
2021-02-28 11:23:38 -08:00
2021-02-23 09:54:51 -07:00
2021-02-12 17:37:23 -08:00
2021-02-11 17:44:41 -08:00
2021-02-16 15:23:23 -08:00
2021-02-26 09:41:03 -08:00
2021-02-17 14:07:48 +01:00
2021-02-14 12:37:48 -08:00
2021-02-22 09:45:23 -08:00
2021-02-14 18:15:15 +00:00
2021-02-16 12:01:32 +09:00
2021-02-16 12:01:32 +09:00
2021-02-11 18:31:48 +01:00
2021-02-28 12:06:45 -08:00
2021-02-26 09:41:03 -08:00
2021-02-11 09:45:28 -05:00
2021-02-26 13:59:32 -08:00
2021-02-24 21:05:28 +05:30
2021-02-24 21:04:54 +05:30
2021-02-24 09:54:24 -08:00
2021-02-26 13:59:32 -08:00
2021-02-17 14:12:42 +01:00
2021-02-17 14:12:43 +01:00
2021-02-16 09:59:41 +01:00
2021-02-08 12:28:07 +01:00
2021-02-11 16:19:20 +01:00
2021-02-26 09:41:04 -08:00
2021-02-24 13:38:28 -08:00
2021-02-07 14:51:11 -08:00
2021-02-09 12:43:42 -05:00
2021-02-24 10:13:55 -08:00
2021-02-26 09:40:59 -08:00
2021-02-24 13:38:32 -08:00
2021-02-11 19:56:15 +01:00
2021-02-24 13:38:32 -08:00
2021-02-24 13:38:35 -08:00
2021-03-17 00:04:40 -04:00
2021-02-23 11:29:52 -08:00
2021-02-11 13:24:44 -08:00
2021-02-23 13:39:45 -08:00
2021-02-16 13:14:06 -08:00
2021-02-26 09:41:05 -08:00
2021-02-18 23:17:57 -08:00
2021-02-10 23:34:16 +01:00
2021-02-23 20:33:36 -07:00
2021-02-12 15:27:17 +01:00
2021-02-21 10:29:20 -08:00
2021-02-12 15:27:17 +01:00
2021-02-23 11:29:52 -08:00
2021-02-05 20:48:28 +01:00
2021-02-08 12:24:04 +01:00
2021-02-24 13:38:31 -08:00
2021-02-26 09:41:03 -08:00
2021-02-17 14:12:42 +01:00
2021-02-26 10:19:03 -08:00
2021-02-22 10:22:54 -08:00
2021-02-26 09:41:02 -08:00
2021-02-26 09:41:05 -08:00
2021-02-26 09:40:59 -08:00
2021-02-26 09:41:03 -08:00
2021-02-22 13:16:53 -05:00
2021-02-19 11:54:08 +01:00
2021-02-19 11:54:08 +01:00
2021-02-19 11:35:28 +01:00
2021-02-23 13:39:45 -08:00
2021-02-23 13:39:45 -08:00
2021-02-26 09:41:03 -08:00
2021-02-09 09:30:16 +01:00
2021-02-22 13:01:23 -08:00
2021-02-24 13:38:30 -08:00
2021-02-26 09:41:00 -08:00
2021-02-26 09:41:00 -08:00
2021-02-26 09:41:00 -08:00
2021-02-24 13:38:35 -08:00
2021-02-24 13:38:33 -08:00
2021-02-24 13:38:32 -08:00
2021-02-26 09:41:00 -08:00
2021-02-24 10:25:37 -08:00
2021-02-08 12:28:07 +01:00
2021-02-27 08:07:12 -08:00
2021-02-10 14:44:40 +01:00
2021-02-16 19:35:29 -08:00
2021-02-23 20:32:11 -07:00
2021-02-11 13:24:44 -08:00
2021-02-24 14:32:15 -08:00
2021-02-16 16:11:14 -05:00
2021-02-26 09:17:24 -08:00
2021-02-12 19:23:57 -06:00
2021-02-11 08:33:41 +01:00
2021-02-17 13:17:49 -08:00
2021-02-24 13:38:29 -08:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:40:59 -08:00
2021-02-26 09:40:59 -08:00
2021-02-25 09:56:08 -08:00
2021-02-23 14:11:13 -06:00
2021-02-23 14:12:01 -06:00
2021-02-23 09:28:51 -08:00
2021-02-26 09:41:05 -08:00
2021-02-16 15:23:23 -08:00
2021-02-24 14:52:41 +01:00
2021-02-26 09:41:03 -08:00
2021-02-17 14:07:44 +01:00
2021-02-21 12:35:04 -08:00
2021-02-26 09:41:01 -08:00
2021-03-18 22:39:30 -04:00
2021-02-21 17:25:22 -07:00
2021-02-23 13:39:45 -08:00
2021-02-13 14:32:04 -08:00
2021-02-26 09:41:02 -08:00
2021-02-26 09:41:02 -08:00
2021-02-26 09:41:04 -08:00
2021-02-17 14:12:42 +01:00
2021-02-17 14:12:42 +01:00
2021-02-17 14:25:50 -08:00
2021-02-26 09:41:04 -08:00
2021-03-02 17:25:46 -07:00
2021-02-20 10:13:32 -05:00
2021-02-23 13:39:45 -08:00
2021-02-06 00:21:42 +01:00
2021-02-16 10:40:28 +02:00
2021-02-11 16:31:57 -05:00
2021-02-09 12:27:29 -05:00
2021-02-20 21:28:04 -08:00
2021-02-13 17:17:53 +01:00
2021-02-15 18:50:01 +01:00
2021-02-23 07:52:56 -05:00
2021-02-23 07:52:58 -05:00
2021-02-12 12:56:55 +01:00
2021-02-09 12:15:07 +01:00
2021-02-26 09:41:00 -08:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:41:01 -08:00
2021-02-08 22:58:55 +01:00