On Fri, 2011-01-07 at 11:10 -0800, Nicholas A. Bellinger wrote: > On Fri, 2011-01-07 at 15:14 -0300, Gustavo Panizzo wrote: > > Hi Nicholas, > > > > that issue was fixed with your patch. thanks > > i've found another issue > > > > i've attached the dmesg from lio node, it keeps saying > > > > SPC-3 PR [iSCSI] waiting for pr_res_holders > > > > and the machine hangs > > > > > > log from the testing machine > > > > Check to verify there are no reservations on disk /dev/sdf from node > > cluster2 Passed > > RegisterIgnoreKeys on disk /dev/sdf from node cluster1 ................. Passed > > Verify registrations for disk /dev/sdf on node cluster1 ................ Passed > > RegisterIgnoreKeys on disk /dev/sdf from node cluster1 ................. Passed > > Verify registrations for disk /dev/sdf on node cluster1 ................ Passed > > Clear PGR on node cluster1 ............................................. Failed > > > > > > do you want a wireshark capture at this point? > > > > Hi Gustavo, > > Looking at the latest dmesg, I believe this new issue is specific to the > > 'REGISTER_AND_IGNORE_EXISTING_KEY: Changed Reservation Key for ...' > > scenario below with APTPL=0 within core_scsi3_emulate_pro_register(): > > [ 269.532906] SPC-3 PR [iSCSI] Service Action: REGISTER_AND_IGNORE_EXISTING_KEY Initiator Node: iqn.1994-05.com.redhat.cluster1:7f3715a3da22,i,0x00023d010000 > [ 269.547412] SPC-3 PR [iSCSI] registration on Target Port: iqn.2010.ar.com.zumbi:disk0,0x0001 > [ 269.555871] SPC-3 PR [iSCSI] for SINGLE TCM Subsystem iblock Object Target Port(s) > [ 269.563978] SPC-3 PR [iSCSI] SA Res Key: 0x4b6579412d2d2d2d PRgeneration: 0x00000007 APTPL: 0 > [ 269.573005] SPC-3 PR: Set APTPL Bit Deactivated for REGISTER > [ 269.990649] SPC-3 PR [iSCSI] REGISTER_AND_IGNORE_EXISTING_KEY: Changed Reservation Key for iqn.1994-05.com.redhat.cluster1:7f3715a3da22 to: 0x4b6579422d2d2d2d PRgeneration: 0x00000008 > [ 270.007747] SPC-3 PR: Set APTPL Bit Deactivated for REGISTER > [ 270.453160] SPC-3 PR [iSCSI] waiting for pr_res_holders > [ 270.460294] SPC-3 PR [iSCSI] waiting for pr_res_holders > [ 270.465543] SPC-3 PR [iSCSI] waiting for pr_res_holders > [ 270.471450] SPC-3 PR [iSCSI] waiting for pr_res_holders > > It appears that we are missing the final call to core_scsi3_put_pr_reg() to > drop pr_res_holders reference back to zero before returning. Below is a quick > patch to fix this specific case in core_scsi3_emulate_pro_register(), please > re-test and I will try to reproduce and verify the fix on my end shortly. > Hi again Gustavo, I have been able to reproduce and verify the fix with the patch below. This bugfix has been committed and pushed into lio-core-2.6.git/master and lio-4.0 and sent out to linux-scsi for inclusion. Thanks again for your bug report(s), and please let me know if you run into any further issues against the Vertias PR logic. --nab > diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c > index 6b275bb..c858f20 100644 > --- a/drivers/target/target_core_pr.c > +++ b/drivers/target/target_core_pr.c > @@ -2327,6 +2327,7 @@ static int core_scsi3_emulate_pro_register( > if (!(aptpl)) { > pr_tmpl->pr_aptpl_active = 0; > core_scsi3_update_and_write_aptpl(dev, NULL, 0); > + core_scsi3_put_pr_reg(pr_reg); > printk("SPC-3 PR: Set APTPL Bit Deactivated" > " for REGISTER\n"); > return 0; > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html