07.06.2013 Views

Scsi - Index of

Scsi - Index of

Scsi - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

298 /* signal that we've started the thread */<br />

299 complete(&(us->notify));<br />

300<br />

301 for(;;) {<br />

302 US_DEBUGP("*** thread sleeping.\n");<br />

303 if(down_interruptible(&us->sema))<br />

304 break;<br />

305<br />

306 US_DEBUGP("*** thread awakened.\n");<br />

110<br />

307<br />

308 /* lock the device pointers */<br />

309 down(&(us->dev_semaphore));<br />

310<br />

311 /* if us->srb is NULL, we are being asked to exit */<br />

312 if (us->srb == NULL) {<br />

313 US_DEBUGP("-- exit command received\n");<br />

314 up(&(us->dev_semaphore));<br />

315 break;<br />

316 }<br />

317<br />

318 /* lock access to the state */<br />

319 scsi_lock(host);<br />

320<br />

321 /* has the command timed out *already* ? */<br />

322 if (test_bit(US_FLIDX_TIMED_OUT, &us->flags)) {<br />

323 us->srb->result = DID_ABORT

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!