lkml.org 
[lkml]   [2009]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] aoe: end barrier bios with EOPNOTSUPP
On Wed Sep  9 13:06:42 EDT 2009, alan@lxorguk.ukuu.org.uk wrote:
> > The bio in question is a barrier. Jens Axboe suggested that such bios
> > need to be recognized and ended with -EOPNOTSUPP by any driver that
> > provides its own ->make_request_fn handler and does not handle
> > barriers.
> >
> > In testing the changes below eliminate the BUG.
>
> Presumably AoE should actually issue an ATA cache flush for this case ?

Yes. The aoe driver juggles a set of in-process I/O operations that
have been sent to the AoE target but have not yet received responses.

To implement the barrier, it would stop generating new AoE write
commands, wait for AoE write responses for all the outstanding write
commands, issue the ATA cache flush command, wait for the response to
the flush, and then resume normal activity.

--
Ed


\
 
 \ /
  Last update: 2009-09-09 20:05    [W:0.082 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site