diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-16 12:26:56 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-10-16 12:26:56 +0200 |
commit | 965bb2d2480363bf02ad0c10f92b7a6b4962e38f (patch) | |
tree | 6b208c761f464ca6b5bb24aab9f6e7620e7d2337 /sys/src/cmd/nusb/disk/ums.h | |
parent | 1cd4579cdc9bbfc9001ed15af6bf01e331e07493 (diff) |
nusb/disk: handle blocking usb access with srv released
usb is bound after /dev, so a hanging usb device will hang
access to /dev. we avoid this by releasing the srv, which
allows the fs to still handle reads and walks of the
directories.
ios are serialized by a qlock in the Umsc structure.
Diffstat (limited to 'sys/src/cmd/nusb/disk/ums.h')
-rw-r--r-- | sys/src/cmd/nusb/disk/ums.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/nusb/disk/ums.h b/sys/src/cmd/nusb/disk/ums.h index f8dbfa4fc..95f1929a3 100644 --- a/sys/src/cmd/nusb/disk/ums.h +++ b/sys/src/cmd/nusb/disk/ums.h @@ -76,6 +76,8 @@ struct Umsc long off; /* offset within a block */ long nb; /* byte count */ + QLock; + /* partitions */ Part part[Maxparts]; |