can block drivers get non-fs requests?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pierre Ossman
Date: Thursday, August 14, 2008 - 4:38 am

Hi Jens,

There is one part of the block layer I'm having trouble completely
understanding (well there are loads really, but right now there's one in
particular :)):

Do block drivers need to watch out for requests that aren't "normal"
reads and writes? The MMC block driver has a funky prepare function
that checks for FS and PC requests and discards anything else. I
believe this is wrong in two regards:

a) PC requests seem to be prepared SCSI cmds, and the MMC driver just
expects normal transfer requests. Therefore, such requests should not
be accepted by this driver.

b) The block layer won't throw weird stuff at us unless explicitly told
so. I.e. a normal block queue will only produce normal FS requests.

Please educate the masses. :)

(I've cc:d Alex as he copied the MMC block driver for the MemoryStick
code, so he's probably also interested in this)

Rgds

--=20
     -- 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.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
can block drivers get non-fs requests?, Pierre Ossman, (Thu Aug 14, 4:38 am)
Re: can block drivers get non-fs requests?, Jens Axboe, (Thu Aug 14, 4:42 am)
Re: can block drivers get non-fs requests?, Pierre Ossman, (Thu Aug 14, 5:39 am)
Re: can block drivers get non-fs requests?, Jens Axboe, (Thu Aug 14, 7:06 am)