mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
virtio-blk:if in assert,don't wait semaphore
we use virtio-blk as coredump backend, so need support write it when assert Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/spinlock.h>
|
||||
#include <nuttx/virtio/virtio.h>
|
||||
#include <nuttx/init.h>
|
||||
|
||||
#include "virtio-blk.h"
|
||||
|
||||
@@ -197,7 +198,7 @@ static void virtio_blk_wait_complete(FAR struct virtqueue *vq,
|
||||
FAR struct virtio_blk_priv_s *priv = vq->vq_dev->priv;
|
||||
FAR sem_t *sem;
|
||||
|
||||
if (up_interrupt_context())
|
||||
if (up_interrupt_context() || OSINIT_IS_PANIC())
|
||||
{
|
||||
for (; ; )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user