Re: [PATCH]: uClinux (MMU-less) patches against 2.5.28

David Woodhouse
2002-07-26T15:57:58Z

alan@lxorguk.ukuu.org.uk said:
> Well for a starter lets try user writing a block to flash which needs
> an erase from a block which happens to be not yet paged in and so
> still on the flash you are writing to.

What locks the page? Surely our write() implementation is just using
copy_from_user(), to get the data from the user, and each erase and write
to the flash chip can be considered atomic -- what's holding a lock, and
what's causing the deadlock?

--
dwmw2