With the latest RTEMS, System > Shutdown > Reboot hangs in
yaffs_guts.c:yaffs_flush_file_cache

A bit of investigation reveals that dev->cache is NULL.  The call
stack at this point in time looks like this:

rtems_yaffs.c:ycb_fsunmount
  rtems_yaffs.c:rtems_yaffs_os_unmount
    yaffs.c:unmount_handler
      yaffs_guts.c:yaffs_flush_whole_cache
        yaffs_guts.c:yaffs_flush_file_cache

The function that sets dev->cache to NULL is
yaffs_guts.c:yaffs_deinitialise

It is called by rtems_yaffs.c:ycb_fsunmount _before_
rtems_yaffs_os_unmount.

I'm not sure how to solve this. Perhaps yaffs.c:unmount_handler (in
flickernoise) should simply not call yaffs_flush_whole_cache and
yaffs_deinitialise ?

- Werner
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to