nvme_disk: Unlock the ReadLocker before notifying the IORequest.

SetStatusAndNotify might call us back for more I/O, and we don't
need (or want) to hold a read-lock for that. It will be acquired
anew if necessary.
This commit is contained in:
Augustin Cavalier
2024-09-10 18:13:32 -04:00
parent 13a5c7f91f
commit 2d07400f07
@@ -780,6 +780,8 @@ nvme_disk_io(void* cookie, io_request* request)
if (status != B_OK)
TRACE_ERROR("I/O failed: %s\n", strerror(status));
readLocker.Unlock();
request->SetTransferredBytes(status != B_OK,
(nvme_request.lba_start * block_size) - rounded_pos);
request->SetStatusAndNotify(status);