Re: can block drivers get non-fs requests?

From: Pierre Ossman
Date: Thu Aug 14 2008 - 08:39:54 EST


On Thu, 14 Aug 2008 13:42:09 +0200
Jens Axboe <jens.axboe@xxxxxxxxxx> wrote:

>
> You should check in the driver whether the request type is supported. So
> if you can only handle fs requests, you should do a check for
> !blk_fs_request() after elv_next_request() and call
> end_(de)queued_request() appropriately.
>

So killing off the request with -EOPNOTSUPP is preferred over having a
prepare function and stopping it there?

Rgds
--
-- Pierre Ossman

Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.

Attachment: signature.asc
Description: PGP signature