Disposal route rolls off the production line on a kind of disk of expansion card
Technical field
The application relates to computer memory technical field, relates in particular to the disposal route that rolls off the production line on a kind of disk of expansion card.
Background technology
Serial Attached SCSI (SAS) (SAS), small computer system interface (SCSI of new generation, Small Computer System Interface) technology, and Serial Advanced Technology Attachment (SATA, Serial Advanced Technology Attachment) interface is identical, be all to adopt serial technology to obtain higher transmission speed, and improve inner space etc. by shortening tie line.SAS is the new interfaces that parallel scsi interface is developed afterwards.The design of this interface is usefulness, availability and the extendibility in order to improve storage system, and the compatibility with SATA hard disk is provided.
The interfacing of SAS can backward compatible SATA.Interface standard, SATA is a substandard of SAS, so SAS controller can directly be controlled SATA hard disk.Due to the compatibility of SAS system, make user can use the hard disk of distinct interface to meet the demand of types of applications on capacity or in usefulness, therefore when expanding storage system, have more elasticity, allow memory device bring into play maximum returns of investment.
In the expansion card equipment (expander) of existing support 6GSAS and SATA interface, system can detect by the mode of poll whether produced the disk event of reaching the standard grade or roll off the production line, and processes.But at certain in particular cases, disk can constantly produce and reach the standard grade within a period of time, the event that rolls off the production line, produces extremely, causes flash phenomenon.
Summary of the invention
The application provides the disposal route that rolls off the production line on a kind of disk of expansion card, can avoid occurring disk flash phenomenon.
The disposal route that rolls off the production line on the disk of a kind of expansion card that the embodiment of the present application provides, comprising:
The Port Management module of A, expansion card is carried out this poll processing, obtains disk event;
B, judge that disk, whether in standby condition, if so, performs step C, otherwise execution step D;
C, carry out the processing procedure of disk standby condition, then enter next polling cycle, return to steps A;
Whether D, inspection the non-standby condition time of recording disc, if so, performs step E, otherwise execution step G;
Whether the non-standby condition time of disk that E, judgement have been recorded and the difference of current system time are greater than predefined threshold value, if so, perform step F, otherwise enter next polling cycle, return to steps A;
F, carry out the processing procedure of the non-standby condition of disk, report a lower wall event to driver module, then enter next polling cycle, return to steps A;
G, record the current system time as the non-standby condition of the disk time, enter next polling cycle, return to steps A.
Preferably, step C further comprises: remove the non-standby condition time of disk of having recorded.
Preferably, described threshold value is 5 seconds.
The embodiment of the present application also provides a kind of expansion card, comprises Port Management module and driver module, and described Port Management module comprises:
Poll processing unit, for carrying out poll processing, obtains disk event;
The first judging unit, judges that for the disk event of obtaining according to poll processing unit whether disk is in standby condition, if notice disk processing unit carries out the processing procedure of disk standby condition, otherwise enables time detecting unit;
Time detecting unit, for whether checking the non-standby condition of the recording disc time, if record does not record the current system time as the non-standby condition of the disk time; Whether the non-standby condition time of disk that if so, judgement has been recorded and the difference of current system time are greater than predefined threshold value, the processing procedure of if so, notifying disk processing unit to carry out the non-standby condition of disk, otherwise do not process;
Disk processing unit, for carry out the processing procedure of disk standby condition or the non-standby condition of disk according to notice, reports a lower wall event to driver module during the processing procedure of the non-standby condition of conducting disk.
Preferably, the disk event that described the first judging unit obtains according to poll processing unit judge disk whether the result in standby condition be yes, further notify time detecting unit to remove the non-standby condition time of disk of having recorded.
Preferably, described threshold value is 5 seconds.
As can be seen from the above technical solutions, in Port Management module, disk is rolled off the production line to reporting events during to driver module, inquiry short time and so on, whether this disk there is dish event, did not if so, report, and left poll next time for and processed; If no, reported.In this way, a large amount of lower wall events that produce at short notice during by disk flash, only postpone to report once, in the situation that not affecting normal process process, have solved the problem of disk flash.Simultaneously, (reset) disk of can resetting while coiling on master controller due to the memory device based on dual control framework, now from controller, can think that disk produces mistake, in mistake, processing in branch also can reset disk, cause principal and subordinate to control the mistake of continuous reset disk, present techniques scheme has also been avoided the generation of this situation well.Therefore because dish on disk is a process relatively slowly at SCSI layer, for example, as long as is set a suitable time delay (about 5 seconds), can not affect the function that rolls off the production line on disk normal.
Accompanying drawing explanation
Process flow figure rolls off the production line on the disk that Fig. 1 provides for the embodiment of the present application.
Embodiment
Present techniques scheme, by revising the processing mode rolling off the production line on disk, has been avoided the generation of flash phenomenon.In Port Management module, disk is rolled off the production line to reporting events during to driver module, inquiry short time and so on, whether this disk there is dish event, did not if so, report, and left poll next time for and processed; If no, reported.In this way, a large amount of lower wall events that produce at short notice during by disk flash, only postpone to report once, in the situation that not affecting normal process process, have solved the problem of disk flash.
For making know-why, feature and the technique effect of present techniques scheme clearer, below in conjunction with specific embodiment, present techniques scheme is described in detail.
Fig. 1 shows the process flow that rolls off the production line on the disk of the expansion card that the embodiment of the present application provides, and comprises the steps:
Step 101: the Port Management module of expansion card is carried out this poll processing, obtains disk event;
Step 102: judge that disk, whether in preparing (ready) state, if so, performs step 103, otherwise performs step 105;
Step 103: remove the non-standby condition time of disk of having recorded;
Step 104: carry out the processing procedure of disk standby condition, then enter next polling cycle, return to step 101.
Step 105: whether check and if so, to perform step 106, otherwise to perform step 108 the non-standby condition time of recording disc;
Step 106: whether the non-standby condition time of disk that judgement has been recorded and the difference of current system time are greater than predefined threshold value, if so, perform step 107, otherwise enter next polling cycle, return to step 101.In the embodiment of the present application, described threshold value setting is 5 seconds.
Step 107: carry out the processing procedure of the non-standby condition of disk, report a lower wall event to driver module, then enter next polling cycle, return to step 101.
Step 108: record the current system time as the non-standby condition of the disk time, enter next polling cycle, return to step 101.
The embodiment of the present application also provides a kind of expansion card, comprises Port Management module and driver module, and described Port Management module comprises:
Poll processing unit, for carrying out poll processing, obtains disk event;
The first judging unit, judges that for the disk event of obtaining according to poll processing unit whether disk is in standby condition, if notice disk processing unit carries out the processing procedure of disk standby condition, otherwise enables time detecting unit;
Time detecting unit, for whether checking the non-standby condition of the recording disc time, if record does not record the current system time as the non-standby condition of the disk time; Whether the non-standby condition time of disk that if so, judgement has been recorded and the difference of current system time are greater than predefined threshold value, the processing procedure of if so, notifying disk processing unit to carry out the non-standby condition of disk, otherwise do not process;
Disk processing unit, for carry out the processing procedure of disk standby condition or the non-standby condition of disk according to notice, reports a lower wall event to driver module during the processing procedure of the non-standby condition of conducting disk.
Preferably, the disk event that described the first judging unit obtains according to poll processing unit judge disk whether the result in standby condition be yes, further notify time detecting unit to remove the non-standby condition time of disk of having recorded.
The foregoing is only the application's preferred embodiment; not in order to limit the application's protection domain; all within the spirit and principle of present techniques scheme, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of the application's protection.