From: Ming Z. <mi...@el...> - 2005-11-07 22:20:25
|
fyi, enable the RC_MGMT and now that "failed to disable LUN" error disappeared. i still need to think about how and why. :P Ming On Sun, 2005-11-06 at 13:57 -0500, Ming Zhang wrote: > ic. sounds tricky. anyway thx for the info. hope i can figure this out. > > Ming > > On Sun, 2005-11-06 at 20:35 +0300, Vladislav Bolkhovitin wrote: > > Ming Zhang wrote: > > > u have this > > > > > > #ifdef RC_MGMT > > > q2t_modify_command_count(targets[ha->instance], 1); > > > #endif > > > > > > whenever CTIO return not succ. i am not sure why this is needed. it will > > > skew the resource count. also because that field is only u8, it is quite > > > easy to overflow. > > > > Actually, I don't remember. I only remember that the firmware in many > > cases increment or decrement the counters itself, so we empirically > > found where to decrement or increment it back correspondingly. Thus, we > > could easily miss something. > > > > Vlad > > > > > Ming > > > > > > > > > On Wed, 2005-11-02 at 09:00 -0500, Ming Zhang wrote: > > > > > >>Thanks. I will read the code a while again before asking him the > > >>question. > > >> > > >>Yes, it is only included in Makefile-24. but till now i run 2.6.x while. > > >>and in fact, i only run 2.6.x. except this fail-to-disable problem. > > >> > > >>Ming > > >> > > >> > > >>On Wed, 2005-11-02 at 13:59 +0300, Vladislav Bolkhovitin wrote: > > >> > > >>>Forgot to write how the problem with resource counts management apears > > >>>itself: > > >>>see the message "Failed to disable LUNs for host XX" in q2t_target_release() > > >>>(i.e. on target module unload). > > >>> > > >>>Vlad > > >>> > > >>> > > >>>>Hi > > >>>> > > >>>>Hm, it is set in Makefile-24, but it seems we forgot to do it in Makefile > > >>>>for 2.6. > > >>>>Thanks for catching it. > > >>>> > > >>>>Anticipating your next question, I think you should try at first without > > >>>>all that useless RC_MGMT > > >>>>staff. Most probably, it should work OK, although you can ask more by > > >>>>current Qlogic driver maintainer. > > >>>>If you will do so, please set me on CC. Resource counts management is > > >>>>described in the doc, but, franly, > > >>>>I haven't understood where and when it could be useful. > > >>>> > > >>>>Vlad > > >>>> > > >>>> > > >>>>>Hi Vlad > > >>>>> > > >>>>>I saw this, but i did not see it is enabled in any Makefile or header > > >>>>>file, am I wrong? > > >>>>> > > >>>>> - RC_MGMT - if set, the driver uses the firmware's resource counts > > >>>>> management. Unfortunately, in the current version of the firmware > > >>>>> it looks to be impossible to turn off resource counts management, > > >>>>> so RC_MGMT must be uncommented. > > >>>>> > > >>>>> > > >>>>>Thanks! > > >>>>> > > >>>>>Ming > > >>>>> > > >>>>>-- > > >>>>> Ming Zhang PhD, > > >>>>> Senior Storage Architect > > >>>>> mi...@ta... > > >>>>> Tandberg Data > > >>>>> ---------------------------------- > > >>>>> > > >>>>> > > >>>>> > > >>>>>------------------------------------------------------- > > >>>>>This SF.Net email is sponsored by the JBoss Inc. > > >>>>>Get Certified Today * Register for a JBoss Training Course > > >>>>>Free Certification Exam for All Training Attendees Through End of 2005 > > >>>>>Visit http://www.jboss.com/services/certification for more information > > >>>>>_______________________________________________ > > >>>>>Scst-devel mailing list > > >>>>>Scs...@li... > > >>>>>https://lists.sourceforge.net/lists/listinfo/scst-devel > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>>------------------------------------------------------- > > >>>>SF.Net email is sponsored by: > > >>>>Tame your development challenges with Apache's Geronimo App Server. > > >>>>Download > > >>>>it for free - -and be entered to win a 42" plasma tv or your very own > > >>>>Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > >>>>_______________________________________________ > > >>>>Scst-devel mailing list > > >>>>Scs...@li... > > >>>>https://lists.sourceforge.net/lists/listinfo/scst-devel > > >>>> > > >>> > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: > > > Tame your development challenges with Apache's Geronimo App Server. Download > > > it for free - -and be entered to win a 42" plasma tv or your very own > > > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > > > _______________________________________________ > > > Scst-devel mailing list > > > Scs...@li... > > > https://lists.sourceforge.net/lists/listinfo/scst-devel > > > > > > |