* BLKDISCARD and AIO
@ 2013-10-22 14:13 Menny Hamburger
2013-10-23 8:42 ` Martin K. Petersen
0 siblings, 1 reply; 3+ messages in thread
From: Menny Hamburger @ 2013-10-22 14:13 UTC (permalink / raw)
To: linux-scsi
Hi,
I have a question regarding the use of BLKDISCARD ioctl in userland code:
Is there currently a way to hook up with an asyncronous event that can be polled by userland when the operation completes?
If not, is there any developement undergoing to implement such a behavior?
Thanks,
Menny
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: BLKDISCARD and AIO
2013-10-22 14:13 BLKDISCARD and AIO Menny Hamburger
@ 2013-10-23 8:42 ` Martin K. Petersen
2013-10-23 9:21 ` Menny_Hamburger
0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2013-10-23 8:42 UTC (permalink / raw)
To: Menny Hamburger; +Cc: linux-scsi
>>>>> "Menny" == Menny Hamburger <Menny_Hamburger@Dell.com> writes:
Menny> I have a question regarding the use of BLKDISCARD ioctl in
Menny> userland code: Is there currently a way to hook up with an
Menny> asyncronous event that can be polled by userland when the
Menny> operation completes?
Not at this time, no.
However, you can fork a child process to execute the ioctl and wait for
that to complete.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: BLKDISCARD and AIO
2013-10-23 8:42 ` Martin K. Petersen
@ 2013-10-23 9:21 ` Menny_Hamburger
0 siblings, 0 replies; 3+ messages in thread
From: Menny_Hamburger @ 2013-10-23 9:21 UTC (permalink / raw)
To: martin.petersen; +Cc: linux-scsi
Dell - Internal Use - Confidential
Thanks,
The issue is that we run a single threaded process (we maintain our own threads) and use eventfd to driver both networking and AIO, so blocking on BLKDISCARD will block all IO done by the process.
Menny
-----Original Message-----
From: Martin K. Petersen [mailto:martin.petersen@oracle.com]
Sent: Wednesday, October 23, 2013 11:43 AM
To: Hamburger, Menny
Cc: linux-scsi@vger.kernel.org
Subject: Re: BLKDISCARD and AIO
>>>>> "Menny" == Menny Hamburger <Menny_Hamburger@Dell.com> writes:
Menny> I have a question regarding the use of BLKDISCARD ioctl in
Menny> userland code: Is there currently a way to hook up with an
Menny> asyncronous event that can be polled by userland when the
Menny> operation completes?
Not at this time, no.
However, you can fork a child process to execute the ioctl and wait for that to complete.
--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-23 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-22 14:13 BLKDISCARD and AIO Menny Hamburger
2013-10-23 8:42 ` Martin K. Petersen
2013-10-23 9:21 ` Menny_Hamburger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox