Thread (3 messages) flat view 3 messages, 2 authors, 2022-11-11

Re: [6.1.0-rc4-next-20221109] Boot time warning kernel/module/main.c:852

From: Sachin Sant <hidden>
Date: 2022-11-11 04:55:39
Also in: linux-scsi, lkml

quoted
[ 8.809079] [c000000007c37e10] [c00000000000cffc] ret_from_kernel_thread+0x5c/0x64
[ 8.809086] Instruction dump:
[ 8.809090] f821ffc1 41820034 395e03c0 7c0004ac 7d205028 2c090001 3929ffff 41c00010
[ 8.809101] 7d20512d
[ 8.809101] sd 1:0:0:1: [sdc] Preferred minimum I/O size 32768 bytes
[ 8.809102] 40c2ffec 7c0004ac 79290fe2 <0b090000> 60000000 38210040 ebc1fff0
[ 8.809115] ---[ end trace 0000000000000000 ]—
-next-20221108 was good. Git bisect points to following
commit 0b25e17e9018a0ea68a9f0b4787672e8c68fa8d5
Date:   Mon Oct 31 15:47:25 2022 -0700
    scsi: alua: Move a scsi_device_put() call out of alua_check_vpd()
Reverting this patch gets rid of the warning.
Hi Sachin,

Thanks for the detailed report. Does the patch below help?
Yup, thanks. With this change applied I do not see the warning.

- Sachin
quoted hunk ↗ jump to hunk
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 693cd827e138..d2cf15338724 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -1025,7 +1025,7 @@ static bool __must_check alua_rtpg_queue(struct alua_port_group *pg,
kref_put(&pg->kref, release_port_group);
}

- return true;
+ return sdev != NULL;
}

/*
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help