Changeset 462ee70f in rtems for cpukit/libblock


Ignore:
Timestamp:
Mar 26, 2012, 10:56:01 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3d60c1b
Parents:
89a84c0
git-author:
Sebastian Huber <sebastian.huber@…> (03/26/12 10:56:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/12/12 08:42:43)
Message:

libblock: Use unprotected chain operations

The transfer chain is accessed by at most one thread at a time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    r89a84c0 r462ee70f  
    22702270    transfer->write_req->bufnum = 0;
    22712271
    2272     while ((node = rtems_chain_get(&transfer->bds)) != NULL)
     2272    while ((node = rtems_chain_get_unprotected(&transfer->bds)) != NULL)
    22732273    {
    22742274      rtems_bdbuf_buffer* bd = (rtems_bdbuf_buffer*) node;
     
    22922292          (bd->block != (last_block + bufs_per_bd)))
    22932293      {
    2294         rtems_chain_prepend (&transfer->bds, &bd->link);
     2294        rtems_chain_prepend_unprotected (&transfer->bds, &bd->link);
    22952295        write = true;
    22962296      }
     
    24392439          if (bd->block > tbd->block)
    24402440          {
    2441             rtems_chain_insert (tnode, node);
     2441            rtems_chain_insert_unprotected (tnode, node);
    24422442            node = NULL;
    24432443          }
     
    24472447
    24482448        if (node)
    2449           rtems_chain_prepend (transfer, node);
     2449          rtems_chain_prepend_unprotected (transfer, node);
    24502450
    24512451        node = next_node;
Note: See TracChangeset for help on using the changeset viewer.