提交 137745c5 编写于 作者: M Markus Armbruster 提交者: Kevin Wolf

scsi-disk: Don't peek behind the BlockDriverState abstraction

Use the appropriate interface instead.
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 c8433287
...@@ -34,7 +34,6 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0) ...@@ -34,7 +34,6 @@ do { printf("scsi-disk: " fmt , ## __VA_ARGS__); } while (0)
#include "scsi-defs.h" #include "scsi-defs.h"
#include "sysemu.h" #include "sysemu.h"
#include "blockdev.h" #include "blockdev.h"
#include "block_int.h"
#include "dma.h" #include "dma.h"
#ifdef __linux #ifdef __linux
...@@ -1889,7 +1888,7 @@ static SCSIRequest *scsi_block_new_request(SCSIDevice *d, uint32_t tag, ...@@ -1889,7 +1888,7 @@ static SCSIRequest *scsi_block_new_request(SCSIDevice *d, uint32_t tag,
* ones (such as WRITE SAME or EXTENDED COPY, etc.). So, without * ones (such as WRITE SAME or EXTENDED COPY, etc.). So, without
* O_DIRECT everything must go through SG_IO. * O_DIRECT everything must go through SG_IO.
*/ */
if (!(s->qdev.conf.bs->open_flags & BDRV_O_NOCACHE)) { if (bdrv_get_flags(s->qdev.conf.bs) & BDRV_O_NOCACHE) {
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册