mirror of https://github.com/acidanthera/audk.git
MdeModulePkg UfsPassThruDxe: Raise to TPL_NOTIFY when dealing async task
This commit will raise the Tpl to TPL_NOTIFY when adding non-blocking SCSI I/O requests to the asynchronous task list. This commit will also raise the Tpl of asynchronous task polling timer to TPL_NOTIFY. These changes are made to match the behavior in ScsiDiskDxe driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19455 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6be0af054e
commit
7e4632a38f
|
@ -882,7 +882,7 @@ UfsPassThruDriverBindingStart (
|
|||
//
|
||||
Status = gBS->CreateEvent (
|
||||
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||
TPL_CALLBACK,
|
||||
TPL_NOTIFY,
|
||||
ProcessAsyncTaskList,
|
||||
Private,
|
||||
&Private->TimerEvent
|
||||
|
|
|
@ -1512,7 +1512,7 @@ UfsExecScsiCmds (
|
|||
// Insert the async SCSI cmd to the Async I/O list
|
||||
//
|
||||
if (Event != NULL) {
|
||||
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||
TransReq->Packet = Packet;
|
||||
TransReq->CallerEvent = Event;
|
||||
InsertTailList (&Private->Queue, &TransReq->TransferList);
|
||||
|
|
Loading…
Reference in New Issue