From: Jeff Garzik <jgarzik@pobox.com>
To: SCSI Mailing List <linux-scsi@vger.kernel.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Subject: SCSI synchronization and error handling
Date: Wed, 30 Jun 2004 15:43:21 -0400 [thread overview]
Message-ID: <40E317D9.80904@pobox.com> (raw)
I'm doing some more work on my scsi LLD, libata, and have a few
questions for the experts in the crowd.
In ATA, some commands need to be sent when no other commands are queued
to hardware. Let's say I have a command stream that looks like
queued write
queued read
queued read
queued write
non-queued SMART command
queued write
queued write
What's the best way to ensure that the SMART command is only executed
after preceding, queued commands are completed? My guess is to return
MLQUEUE_BUSY if (a) ->queuecommand is passed a non-queued command AND
(b) there are commands queued to hardware already.
next reply other threads:[~2004-06-30 19:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 19:43 Jeff Garzik [this message]
2004-07-01 0:49 ` SCSI synchronization and error handling James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40E317D9.80904@pobox.com \
--to=jgarzik@pobox.com \
--cc=James.Bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox