Message ID | 1563693178-23328-1-git-send-email-lizhengui@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk | expand |
Patchew URL: https://patchew.org/QEMU/1563693178-23328-1-git-send-email-lizhengui@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 1563693178-23328-1-git-send-email-lizhengui@huawei.com Type: series Subject: [Qemu-devel] [PATCH] virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === From https://github.com/patchew-project/qemu * [new tag] patchew/1563693178-23328-1-git-send-email-lizhengui@huawei.com -> patchew/1563693178-23328-1-git-send-email-lizhengui@huawei.com Switched to a new branch 'test' 4d13188428 virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk === OUTPUT BEGIN === ERROR: Missing Signed-off-by: line(s) total: 1 errors, 0 warnings, 18 lines checked Commit 4d131884288e (virtio-scsi: fixed virtio_scsi_ctx_check failed when detaching scsi disk) has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/1563693178-23328-1-git-send-email-lizhengui@huawei.com/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-devel@redhat.com
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 839f120..79e555f 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -837,13 +837,15 @@ static void virtio_scsi_hotunplug(HotplugHandler *hotplug_dev, DeviceState *dev, virtio_scsi_release(s); } + aio_disable_external(s->ctx); + qdev_simple_device_unplug_cb(hotplug_dev, dev, errp); + aio_enable_external(s->ctx); + if (s->ctx) { virtio_scsi_acquire(s); blk_set_aio_context(sd->conf.blk, qemu_get_aio_context()); virtio_scsi_release(s); } - - qdev_simple_device_unplug_cb(hotplug_dev, dev, errp); } static struct SCSIBusInfo virtio_scsi_scsi_info = {