Changeset a839d62 in rtems


Ignore:
Timestamp:
Aug 26, 2013, 8:31:46 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
07ad4b6
Parents:
3109857c
git-author:
Sebastian Huber <sebastian.huber@…> (08/26/13 08:31:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/27/13 08:48:15)
Message:

RFS: Use unprotected chain operations

This area is protected by the RFS file system instance lock.

Location:
cpukit/libfs/src/rfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/rfs/rtems-rfs-buffer.c

    r3109857c ra839d62  
    6262
    6363      (*count)--;
    64       rtems_chain_extract (node);
     64      rtems_chain_extract_unprotected (node);
    6565      rtems_chain_set_off_chain (node);
    6666      return buffer;
     
    182182   */
    183183  rtems_rfs_buffer_refs_up (handle);
    184   rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
     184  rtems_chain_append_unprotected (&fs->buffers,
     185                                  rtems_rfs_buffer_link (handle));
    185186  fs->buffers_count++;
    186187
     
    216217    if (rtems_rfs_buffer_refs (handle) == 0)
    217218    {
    218       rtems_chain_extract (rtems_rfs_buffer_link (handle));
     219      rtems_chain_extract_unprotected (rtems_rfs_buffer_link (handle));
    219220      fs->buffers_count--;
    220221
     
    248249          if (fs->release_count > fs->release_modified_count)
    249250          {
    250             buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
     251            buffer = (rtems_rfs_buffer*)
     252              rtems_chain_get_unprotected (&fs->release);
    251253            fs->release_count--;
    252254            modified = false;
     
    254256          else
    255257          {
    256             buffer =
    257               (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
     258            buffer = (rtems_rfs_buffer*)
     259              rtems_chain_get_unprotected (&fs->release_modified);
    258260            fs->release_modified_count--;
    259261            modified = true;
     
    265267        if (rtems_rfs_buffer_dirty (handle))
    266268        {
    267           rtems_chain_append (&fs->release_modified,
    268                               rtems_rfs_buffer_link (handle));
     269          rtems_chain_append_unprotected (&fs->release_modified,
     270                                          rtems_rfs_buffer_link (handle));
    269271          fs->release_modified_count++;
    270272        }
    271273        else
    272274        {
    273           rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
     275          rtems_chain_append_unprotected (&fs->release,
     276                                          rtems_rfs_buffer_link (handle));
    274277          fs->release_count++;
    275278        }
     
    448451  while (!rtems_chain_is_empty (chain))
    449452  {
    450     buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
     453    buffer = (rtems_rfs_buffer*) rtems_chain_get_unprotected (chain);
    451454    (*count)--;
    452455
  • cpukit/libfs/src/rfs/rtems-rfs-file.c

    r3109857c ra839d62  
    124124    shared->fs = fs;
    125125
    126     rtems_chain_append (&fs->file_shares, &shared->link);
     126    rtems_chain_append_unprotected (&fs->file_shares, &shared->link);
    127127
    128128    rtems_rfs_inode_unload (fs, &shared->inode, false);
     
    198198    }
    199199
    200     rtems_chain_extract (&handle->shared->link);
     200    rtems_chain_extract_unprotected (&handle->shared->link);
    201201    free (handle->shared);
    202202  }
Note: See TracChangeset for help on using the changeset viewer.