mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
2009-04-28 Chris Johns <chrisj@rtems.org>
* libblock/src/bdbuf.c: Flush the transfer sync event before
blocking in a read.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* libblock/src/bdbuf.c: Flush the transfer sync event before
|
||||
blocking in a read.
|
||||
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* libnetworking/nfs/bootp_subr.c: Fixed PR1384. The route set in
|
||||
|
||||
@@ -1639,9 +1639,17 @@ rtems_bdbuf_read (dev_t device,
|
||||
* enabled and the pool unlocked. This is a change to the previous version
|
||||
* of the bdbuf code.
|
||||
*/
|
||||
int result;
|
||||
uint32_t b;
|
||||
|
||||
rtems_event_set out;
|
||||
int result;
|
||||
uint32_t b;
|
||||
|
||||
/*
|
||||
* Flush any events.
|
||||
*/
|
||||
rtems_event_receive (RTEMS_BDBUF_TRANSFER_SYNC,
|
||||
RTEMS_EVENT_ALL | RTEMS_NO_WAIT,
|
||||
0, &out);
|
||||
|
||||
rtems_bdbuf_unlock_pool (pool);
|
||||
|
||||
req->req = RTEMS_BLKDEV_REQ_READ;
|
||||
@@ -1665,7 +1673,7 @@ rtems_bdbuf_read (dev_t device,
|
||||
else
|
||||
{
|
||||
rtems_status_code sc;
|
||||
rtems_event_set out;
|
||||
|
||||
sc = rtems_event_receive (RTEMS_BDBUF_TRANSFER_SYNC,
|
||||
RTEMS_EVENT_ALL | RTEMS_WAIT,
|
||||
0, &out);
|
||||
|
||||
Reference in New Issue
Block a user