git: xdisk - disk_setdiskinfo() must be assynchronous

Matthew Dillon dillon at
Fri Feb 27 23:31:12 PST 2015

commit d34b92aff64e5c0f283d9da3a2aa6803b08bd5a2
Author: Matthew Dillon <dillon at>
Date:   Fri Feb 27 23:28:42 2015 -0800

    xdisk - disk_setdiskinfo() must be assynchronous
    * Allow CMD_BUF_READ operations without the device having to be open.
      This allows disk probes to occur.
    * Use disk_setdiskinfo(), which is asynchronous, to avoid an I/O deadlock
      because the call is made from the rxmsg loop.  If it were to issue I/O
      synchronously we would deadlock and never process the reply.

Summary of changes:
 sys/dev/disk/xdisk/xdisk.c | 40 +++++++++++++++++++++++++++++++---------
 sys/kern/subr_diskiocom.c  |  9 ++++++++-
 2 files changed, 39 insertions(+), 10 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list