Changeset 1953 for Whitix/tags/0.2b/devices/kedev/sdevice.c
- Timestamp:
- 02/28/09 15:54:38 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/tags/0.2b/devices/kedev/sdevice.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/tags/0.2b/devices/kedev/sdevice.c
r1811 r1953 119 119 /* Set up the request list head */ 120 120 INIT_LIST_HEAD(&dev->requestList); 121 INIT_WAITQUEUE_HEAD(&dev->flushDone); 121 122 return 0; 122 123 } … … 127 128 { 128 129 struct Request* request; 130 131 if (!buffer->device->blockSize) 132 return NULL; 129 133 130 134 request=(struct Request*)MemAlloc(sizeof(struct Request)); … … 197 201 198 202 request->ioStatus = status; 199 203 200 204 SpinLockIrq(&requestLock); 201 ListRemove(&request->list); 205 206 ListRemoveInit(&request->list); 202 207 203 208 if (status > 0) 204 KePrint("I/O error reading sector %u \n",request->sector);209 KePrint("I/O error reading sector %u (%d)\n",request->sector, status); 205 210 206 211 /* BufferUnlock also wakes up the queue that's waiting for it */ 212 207 213 BufferUnlock(request->buffer); 214 208 215 SpinUnlockIrq(&requestLock); 209 216
