1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

Allow status aggregation for ramdisk reads.

This commit is contained in:
Alexander Motin 2017-06-30 07:48:08 +00:00
parent 94c5b2d124
commit e8583acf9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320495

View File

@ -525,6 +525,11 @@ ctl_backend_ramdisk_rw(union ctl_io *io)
io->scsiio.kern_sg_entries = sgs;
io->io_hdr.flags |= CTL_FLAG_ALLOCATED;
PRIV(io)->len += lbas;
if ((ARGS(io)->flags & CTL_LLF_READ) &&
ARGS(io)->len <= PRIV(io)->len) {
ctl_set_success(&io->scsiio);
ctl_serseq_done(io);
}
#ifdef CTL_TIME_IO
getbinuptime(&io->io_hdr.dma_start_bt);
#endif