You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mei: move mei_cl_complete to client.c
1. rename mei_cl_complete_handler to mei_cl_complete 2. move the function client.c where it belongs Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7d87ca108
commit
db086fa926
@@ -785,6 +785,32 @@ err:
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* mei_cl_complete - processes completed operation for a client
|
||||
*
|
||||
* @cl: private data of the file object.
|
||||
* @cb: callback block.
|
||||
*/
|
||||
void mei_cl_complete(struct mei_cl *cl, struct mei_cl_cb *cb)
|
||||
{
|
||||
if (cb->fop_type == MEI_FOP_WRITE) {
|
||||
mei_io_cb_free(cb);
|
||||
cb = NULL;
|
||||
cl->writing_state = MEI_WRITE_COMPLETE;
|
||||
if (waitqueue_active(&cl->tx_wait))
|
||||
wake_up_interruptible(&cl->tx_wait);
|
||||
|
||||
} else if (cb->fop_type == MEI_FOP_READ &&
|
||||
MEI_READING == cl->reading_state) {
|
||||
cl->reading_state = MEI_READ_COMPLETE;
|
||||
if (waitqueue_active(&cl->rx_wait))
|
||||
wake_up_interruptible(&cl->rx_wait);
|
||||
else
|
||||
mei_cl_bus_rx_event(cl);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* mei_cl_all_disconnect - disconnect forcefully all connected clients
|
||||
|
||||
Reference in New Issue
Block a user